Link to home
Start Free TrialLog in
Avatar of jxbma
jxbmaFlag for United States of America

asked on

Are Interfaces supported in (Microsoft) unmanaged C++?

Hi:

In the C#/.Net Managed Interfaces are supported.

Are interfaces supported in unmanaged C++?
I know I can create an abstract class with virtual function pointers which simulate an interface definition.
But, does the concept of a C# style interface exist?


Thanks,
JohnB
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jxbma

ASKER

Cool beans.
That's what I thought.
Avatar of phoffric
phoffric

One of my C++ projects required interfaces. This was implemented using abstract classes with only pure virtual functions and no implementations and no data members; and also used virtual destructors.
Avatar of jxbma

ASKER

phoffric::>> How did you wrap/expose the classes in that project to be consumed by a C# (managed) client?

Thanks,
JB
>> How did you wrap/expose the classes in that project to be consumed by a C#
This question was not in the OP. My project didn't use C# so this was a non-issue.