[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

managed c++ / interop question

scott mcfadden

2/6/2007 12:34:00 AM

I have a native C++ dll that stuffs a BYTE* buffer and returns the number of
bytes pointed to. I would like to copy the contents of this native buffer
to a managed memory stream. What is the most efficient way to do this? I
guess that I could loop through each byte and copying each byte to the
memory stream one by one but was wondering if there was a better way..

thanks

sm