dll

How to select the version of the VC 2008 DLLs the application should be linked to?

大兔子大兔子 提交于 2020-01-10 02:05:12
问题 I'm using Visual Studio 2008 SP1 for C++. When compiling, Visual Studio needs to choose against which version of the CRT and MFC DLLs the application should be linked, version 9.0.21022.8 (= RTM), 9.0.30729.17 (= SP1) or 9.0.30729.4148 (= SP1 with security update). I'd like to know how you can choose which of both versions will be linked against. Does anyone know? Note : this is important when using a private assembly, because you need to know which versions of the VC 9.0 DLLs to copy along

Why do we still need a .lib stub file when we've got the actual .dll implementation?

泪湿孤枕 提交于 2020-01-10 00:59:09
问题 i'm wondering why linkers can not do their job simply by consulting the information in the actual .dll files that got the actual implementation code ? i mean why linkers still need .lib files to do implicit linking ? are not the export and relative address tables enough for such linking ? is there anyway by which one can do implicit linking using only the .dll without the .lib stub/proxy files ? i thought the windows executable loader would simply do LoadLibrary/LoadLibraryEx calls on behalf

Calling a VB6 method from a .NET DLL

混江龙づ霸主 提交于 2020-01-09 08:08:19
问题 I have a DLL written in VB 6 and another DLL written in Visual Studio 2005 (VB.NET). Now I want to invoke the method of the VB DLL from my .NET DLL. What should I do for this? Any thoughts? 回答1: As VB6 creates COM DLLs, Visual Studio should have no problems generating an interop stub for you. Simply add a reference to the VB6 DLL from your .NET project by selecting Add Reference in Visual Studio and finding your DLL under the COM tab. Make sure the VB6 DLL is registered on your machine before

Class not registered Error

痞子三分冷 提交于 2020-01-09 07:08:27
问题 Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message: Retrieving the COM class factory for component with CLSID {F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I am using Inventor packandgo dll library in visualstudio. Anyone know what is the error? 回答1: My problem and the solution I have a 32 bit third party dll which I have

Class not registered Error

我是研究僧i 提交于 2020-01-09 07:08:13
问题 Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message: Retrieving the COM class factory for component with CLSID {F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I am using Inventor packandgo dll library in visualstudio. Anyone know what is the error? 回答1: My problem and the solution I have a 32 bit third party dll which I have

Using Windows DLL from Linux

旧街凉风 提交于 2020-01-09 04:22:11
问题 We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to. Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge between Linux and Windows, however I'm sure it is not such a unique problem and somebody should have done it before. Are you aware of any solution that allows to call Windows DDL functions

Compile a DLL in C/C++, then call it from another program

情到浓时终转凉″ 提交于 2020-01-08 18:18:13
问题 I want to make a simple, simple DLL which exports one or two functions, then try to call it from another program... Everywhere I've looked so far, is for complicated matters, different ways of linking things together, weird problems that I haven't even begun to realize exist yet... I just want to get started, by doing something like so: Make a DLL which exports some functions, like, int add2(int num){ return num + 2; } int mult(int num1, int num2){ int product; product = num1 * num2; return

How do I build an import library (.lib) AND a DLL in Visual C++?

£可爱£侵袭症+ 提交于 2020-01-08 16:01:41
问题 I want to have a single Visual Studio project that builds a DLL file and an import library (.lib) file. (An import library is a statically-linked library that takes care of loading that DLL file in other projects that use it). So I went to Visual Studio C++ 2008 Express Edition, created a New Project of type Class Library, and set the "Configuration Type" to be "Dyanamic Library (.dll)". But when I build the solution, the only relevant output file I see is a DLL file; I don't see any LIB file

(Windows) How to make auto-update function for plugin?

百般思念 提交于 2020-01-07 09:38:11
问题 I have a question. I'm writing a plugin (.dll) for an application (.exe). And I want to code auto-update function for my plugin but I catched an issue, it could not apply. Because my plugin has loaded while application is running, in run-time it cannot replace. It just apply until application has exited. So, how can I do it? This is my code: http://codepad.org/4a22ccMa Thanks! 回答1: (this answers the original question, which has been edited to something completely different) It depends upon

“Safe handle has been closed” Thread abort: can program crash be avoided?

你。 提交于 2020-01-07 08:10:36
问题 Im using undetermined DLLs which can use undetermined resources such as a COM port. Some DLL methods don't have their own timeouts, so i am forced to abort the execution thread. But if the thread is using a resource such as a COM port, and i abort the thread, my program crashes with the error “Safe handle has been closed”. I know why this happens but is there any way to catch this exception or skip it, rather than an actual crash? 回答1: Solution: Running the code in a separate AppDomain