inherit from a c++ class?

  • Thread starter Thread starter Heather Matthews
  • Start date Start date
H

Heather Matthews

Can I inherit from a c++ base class (.h and .cpp files) with c#?
 
Heather,

No, you can not. What you can do is expose the class as a COM object,
and then extend that (in managed code), or you can create a managed wrapper
for your C++ class in C++, and then extend that.

Hope this helps.
 

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