PC Review


Reply
Thread Tools Rate Thread

COM object import and pointers

 
 
Trevor
Guest
Posts: n/a
 
      19th May 2009
I have a C++ COM object with an event function:

HRESULT OnEvent([out] BYTE* pData, LONG lSize);

When I import this in my C# project I end up with a generated function like
this:

void OnEvent(byte, int );

How do I treat 'byte pData' as a pointer in C#? The COM object needs a way
to pass a block of binary data back to the application. It would ideally be
compatible with C++ and C#. Any advice is appreciated.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Data Import with URLs and Pointers 2.7182818284590... Microsoft Excel Discussion 2 17th Aug 2011 11:22 PM
COM object import and pointers Trevor Microsoft Dot NET Compact Framework 2 20th May 2009 12:01 AM
object pointers rando4 Microsoft Excel Programming 2 25th Oct 2005 04:04 AM
Need an array of object pointers Jack Addington Microsoft C# .NET 3 3rd Sep 2004 11:35 PM
Object Parameters, they are passed as pointers, yes? Derrick Microsoft C# .NET 8 6th Feb 2004 01:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.