Other Parts Discussed in Thread: MSP-GANG
Hi Team,
I'm trying to integrate MSP-Gang.dll in my C# project but there are some native functions (e.g. "GetDataBuffers_ptr(void** x)") that are using not easy to handle parameters in Managed envirnoment.
I had a look at the C# example in the MSP-GANG package but it is not really implementing all the functions so in this case it has not been helpful.
By looking at the CPP_Interactive_MSP_DLL example I was able to find how to get the DATA_BUFFERS class instance from the GetDataBuffers_ptr function void** parameter:
void *temp;
DATA_BUFFERS *RxGang;
MSPGANG_GetDataBuffers_ptr((&temp));
RxGang = (DATA_BUFFERS *)temp;
Unfortunately this is not helping much in C# as I din't find a way to marshal the void** pointer to the DATA_BUFFERS class instance, can anyone help?
Thanks.
Edoardo