Home > Back-end >  C builder how to call C # DLL encapsulation
C builder how to call C # DLL encapsulation

Time:09-28

Recently met clients with c # encapsulation DLL library, do not know whether the warrior to understand all the c # and c + + builder, give a good solution!

CodePudding user response:

CB can't directly access managed DLL, using managed c + +,
If the DLL is COM Visible, you can use the SDK tlbexp. Exe tool from a type library DLL export, introducing the type library in C + + program can use the COM interface to access it, otherwise, or writing an intermediate DLL in MC++ elicit C interface, or unconventional methods: http://www.blong.com/Conferences/BorConUK2002/Interop1/Win32AndDotNetInterop.htm
  • Related