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
 
Thanks!

Mattias Sjögren said:
Gene,


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



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top