Hi.
I have an DLL written as "normal" C++ dll. I has an GetObject function,
which return an c++ class.
Now I whant to use this class (and all its members) in my C# applikation.
I know that C# classes and C++ class are incompatible.
So this is how I whant to solve it: (If possible)
My C# applikation uses a managed C++ class, that is added to my C# project.
The managed C++ class then uses the "old" dll and the C++ class returned by
it. It then has some members functions/Interfaces, that is used by the C#
class.
The managed C++ class allso must use WaitforMultipleObjects(..) (The DLL
uses named events for signaling)
So my Q's are:
1: Is this gonna work ?
2: If it does, how do I add an managed C++ file/class til my C# projects and
how does the C# class use the managed C++ class ? (How does the C# class now
about the managed C++ class)
3: Is there any other pretty solution for this ?
Thomas