C
Chris Kiechel
I am writing a .NET Windows application and it needs to
perform DDE calls to a legacy system. I created a C++
unmanaged class that performs the actual DDE connection
and communication. However, I need .NET to instantiate
this object and somehow allow the this object to callback
to .NET. So, my question is:
1. How can a managed class instantiate and unmanaged
class?
2. How can an unmanaged class call a function or delegate
in the managed class?
I would like both classes to reside in the same project,
but it doesn't have to.
Thanks!
perform DDE calls to a legacy system. I created a C++
unmanaged class that performs the actual DDE connection
and communication. However, I need .NET to instantiate
this object and somehow allow the this object to callback
to .NET. So, my question is:
1. How can a managed class instantiate and unmanaged
class?
2. How can an unmanaged class call a function or delegate
in the managed class?
I would like both classes to reside in the same project,
but it doesn't have to.
Thanks!