Exported C++ class

  • Thread starter Thread starter Gene Daniel
  • Start date Start date
G

Gene Daniel

Hi,

I have a DLL that has a C++ class exported. Is there any way that I can
use this class in a C# program? I know about the COM interop but this class
isn't a COM class. I also know about accessing functions in DLLs using the
DllImport attribute but I don't think that imports classes (or does it??).
Any help will be appreciated. Thanks!

Gene
 
Gene,
I have a DLL that has a C++ class exported. Is there any way that I can
use this class in a C# program?

Not directly no. The easiest way to do it would be to write a COM or
managed wrapper in C++.



Mattias
 
Back
Top