How to write Marshalling code for Function pointer in cpp?

K

kumarabhijit

Hi,

Can anyone help me about how to write Marshalling code for Function
pointer in cpp?

Thanks
Abhijit
 
M

Mattias Sjögren

Can anyone help me about how to write Marshalling code for Function
pointer in cpp?

What kind of marshaling? Maybe you should post to the C++ group
instead.


Mattias
 
K

kumarabhijit

Hi Matt,

Sorry for confusing you. I will like to elaborate more on this.

I have one VC++ method/function
DataRecvdOnCallBack(unsigned char * buffer, int *
size)

I need to use this callback method from C# space.For
this purpose I am planning to write one delegate

public delegate void DataRecvdCallBackDelegate(ref
byte[] buffer,ref int size);

can anyone tell me how to write
Interoperability/marshalling wrapper for it?

Thanks
 
K

kumarabhijit

No reply:-(

Waiting for reply!
Abhijit
Hi Matt,

Sorry for confusing you. I will like to elaborate more on this.

I have one VC++ method/function
DataRecvdOnCallBack(unsigned char * buffer, int *
size)

I need to use this callback method from C# space.For
this purpose I am planning to write one delegate

public delegate void DataRecvdCallBackDelegate(ref
byte[] buffer,ref int size);

can anyone tell me how to write
Interoperability/marshalling wrapper for it?

Thanks
Abhijit said:
What kind of marshaling? Maybe you should post to the C++ group
instead.


Mattias
 

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