ATL com object that fire event to C#

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!
 
S

Sylvain Lafontaine

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top