all groups > visual studio .net general > november 2006 >
You're in the

visual studio .net general

group:

using in VC++6 a dll created from C#


using in VC++6 a dll created from C# stesvis
11/22/2006 5:26:05 AM
visual studio .net general:
hi, i created a DLL from VC# and tried to use it in VC++6.0.
the problem is that VC++ needs also the .lib file, but VC# does NOT
generate it.
is there a way to generate a .lib file from C#? ho can i use a dll in
VC++ having the .dll file, but not the .lib?
thanks!
Re: using in VC++6 a dll created from C# Gerry Hickman
11/22/2006 9:47:29 PM
Hi,

Maybe I'm missing something, but I thought the DLLs created by C# were
essentially "managed" code and would require the .NET framework?

The VS2005 docs say that you CAN call a C# generated DLL from unmanaged
code (VC++ 6.0), but they don't seem to elaborate and don't make it
clear if there'd still be a dependency on the .NET Framework. They also
don't make it clear how to create as associated LIB file, but you could
try calling the export functions using dynamic run-time linking then you
would not need a LIB file.

[quoted text, click to view]


--
AddThis Social Bookmark Button