I have this situation:
I have a huge library of pure unmanaged C++ code that uses events like this:
[event_source(native)]
class CFileBuffer : public CBuffer {
public: __event void OnSetProgress(const CProgressInfo
&ProgressInfo);
}
And I connect using the Hook and unhook functions.
This works perfectly.
Now, I created a managed wrapper class around CFileBuffer to be used in
managed C++ and C# classes.
public __gc class FileBuffer : public System::IDisposable {
private: System::IntPtr __nogc * CFileBuffer ;
private: bool disposed;
.....
}
So how can I create a event that can convert the CFileBuffer::
OnSetProgress() event to to a FileBuffer::OnSetProgress() event that can be
used in C# and managed C++???? The conversion I uses always crashes the
system. I am stuck here.
Thanks.
--
http://www.skyscan.be