how do i load a dll made in C#?
-
Any article on how to load a dll made in C# to be used in visual c++ 6. Also if this dll is capable of throwing events how do we handle these events? Thanks
as every other dll!? LoadLibrary!? GetProcAddress!? Don't try it, just do it! ;-)
-
as every other dll!? LoadLibrary!? GetProcAddress!? Don't try it, just do it! ;-)
-
Any article on how to load a dll made in C# to be used in visual c++ 6. Also if this dll is capable of throwing events how do we handle these events? Thanks
Probably the easiest way do do it is to expose the C# code as a com object.
The architect has placed his bets, but the odds are long -Poster Children
-
Any article on how to load a dll made in C# to be used in visual c++ 6. Also if this dll is capable of throwing events how do we handle these events? Thanks
I dont think you can create a DLL in C#. You can only build an assembly in C#. There is a difference between DLL and Managed assembly, although they share the same extension. To use the assembly from C++, as another reader pointed out convert the C# class to a COM object and use the COM object in VC++. Else you can host the CLR runtime in your VC++ app and then load your assembly there in.
-
Any article on how to load a dll made in C# to be used in visual c++ 6. Also if this dll is capable of throwing events how do we handle these events? Thanks
Do a search for "hosting the CLR". As for catching exceptions, it's probably pretty similar to managed c++. -- Joel Lucsy