G
Guest
I need to wrap a MFC extension Dll with export class(let's suppose it's
named CA)
so we could use it in C#.
The dll is provided by third party vendor which means I couldn't modify it.
A managed c++ library project was created to wrap this dll with a __gc
class(let's suppose it's named CGA).
class CGA contain an instance of class CA and explicitly delegates
implementation to the CA's methods
The problem is any call to methods of class CA(from the wrap class CGA of
course) would
cause AssertFailure and it's turn out that the function AfxGetInstance
failed with null-pointer returned.
Is there any solution to this problem?
BTW: English is not my mothertongue, so feel free to correct me if I'm wrong.
named CA)
so we could use it in C#.
The dll is provided by third party vendor which means I couldn't modify it.
A managed c++ library project was created to wrap this dll with a __gc
class(let's suppose it's named CGA).
class CGA contain an instance of class CA and explicitly delegates
implementation to the CA's methods
The problem is any call to methods of class CA(from the wrap class CGA of
course) would
cause AssertFailure and it's turn out that the function AfxGetInstance
failed with null-pointer returned.
Is there any solution to this problem?
BTW: English is not my mothertongue, so feel free to correct me if I'm wrong.