Groups | Blog | Home
all groups > visual c libraries > july 2003 >

visual c libraries : how to use C# .dll file in the C++ 6.0 ?


Frank
7/13/2003 7:16:29 AM

If I have write a C# .dll file, how can I use the .dll in
the C++6.0?
Can anyone give me a simple example?

Thank you!!!

regards,
Doug Harrison [MVP]
7/14/2003 1:07:03 AM
[quoted text, click to view]

If you mean VC++ 6, there's no direct way to do it, as C# can only generate
managed code, and VC6 is purely unmanaged. You'll have to use some sort of
interop, probably a COM-callable wrapper. You can find an example of this
here, and much more on the subject in the neighboring topics:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcominteropsamplecomclientnetserver.asp

--
Doug Harrison
AddThis Social Bookmark Button