Question Linking unmanaged C/C++

newsoft

New member
Joined
Mar 16, 2010
Messages
1
Programming Experience
10+
Hi,

I have:
1) a VB.NET WinForms application
2) a managed C++ wrapper class
3) a library written in C
My target platform is XP SP3 with .NET 3.5.

Right now (1) is in a exe, (2) and (3) are in a DLL.

This works on some computers and gives a clr20r3 system.invalidoperationexception on others.

- Solution 1: make all three parts into one EXE. Is this feasible?
Visual Studio doesn't provide a static library default project.
If I change the project settings for (2) from DLL to LIB I get a warning that there are no public symbols in the library.

- Solution 2: fix the DLL load issue. How?
Using SysInternals Process Monitor I can see Load Image is not done for the DLL even though the file gets opened.

- Solution 3: any other ideas?
 
Last edited:
Back
Top