G
Geoff Jones
Hiya
I have a DLL written in VC++ MFC. It contains a class. I would like to be
able to create an instance of the class from within a C# application. I
believe the only way I can do this is to use COM? I'm afraid I'm not
familiar with this technology and would appreciate any advice on how to
proceed.
As an example of what I'm trying to do and to simplify matters, let us
assume that the class I'm trying to use from the DLL in the C# application
is something trivial like:
class CMFCMyClass
{
public:
CMFCMyClass();
~CMFCMyClass();
int getNumber()
{
return 42;
};
}
Can anybody tell me how to create the DLL, using COM technology, and then
create an instance of the class in C#.
Thanks in advance
Geoff
I have a DLL written in VC++ MFC. It contains a class. I would like to be
able to create an instance of the class from within a C# application. I
believe the only way I can do this is to use COM? I'm afraid I'm not
familiar with this technology and would appreciate any advice on how to
proceed.
As an example of what I'm trying to do and to simplify matters, let us
assume that the class I'm trying to use from the DLL in the C# application
is something trivial like:
class CMFCMyClass
{
public:
CMFCMyClass();
~CMFCMyClass();
int getNumber()
{
return 42;
};
}
Can anybody tell me how to create the DLL, using COM technology, and then
create an instance of the class in C#.
Thanks in advance
Geoff