ATL com object that fire event to C#

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hi,

I have an ATL com object that fire event to its container the event method
pass a BYTE* (pointer to bytes) variable as argument that points to block of
memory, how can I catch this event in a c# application and get the data from
the byte pointer???
Can I use array in c# to copy the byte memory into it and use it as array???
(I know I need to write com interop but how can I get a pointer in C# from a
com object that use one?)

Thanks!
 
You can use pointer inside C# if you are using the unsafe mode. I don't
know the answer to your question but I think that you should take a good
look at any books/articles dealing with C++ in the managed environment
(C++.NET).

For exemple, a simple search with « C# ATL » on CodeProject.com gives tens
of articles as the result.

S. L.
 
Back
Top