المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Passing an unmanaged buffer to DataObject



C# Programming
08-29-2010, 01:00 AM
Hello people!

I am getting a buffer (allocated with CoTaskMemAlloc) from an unmanaged DLL call along with the buffer's size. I would like to feed this buffer (or a copy of this buffer) to DataObject (and drag-drop it...). Is it possible and if yes, how?
I've been coding in C++ for many years now (so i am not new to the concept of the whole programming business), but i'm relatively new to C#, so please keep it simple for me.

Thanks in advance for any answers.
<div class="signature"><b>> The problem with computers is that they do what you tell them to do and not what you want them to do.
"It doesn't work, fix it" does not qualify as a bug report.
Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it.