I have a problem passing a struct array to a dll written in C. I have no problem passing it by using marshalling and all that. But the problem is when it returns the array of structures i only get the first instance back nothing more. I know i have to use the inPtr in order to make that word but that is a totaly new area for me so i dont even know where to start. Was wondering if anybody know where i could find a working example which shows how this is done.
This guy here:
http://forums.msdn.mic rosoft.com/en-US/netfxbcl/thread/ff06fe3d-863c-40e6-9574-d82a625a6373/
hade the same problem. But i dont fully understand his solution. The main problem with his example is i dont know what his function looks like on the C side. He says at the end his C function recives a **mystrucarray but i dont know how to mainipulate the values of that. Can anybody help me off in the right direction. Would be so grateful.
best regards
/Rob
This guy here:
http://forums.msdn.mic rosoft.com/en-US/netfxbcl/thread/ff06fe3d-863c-40e6-9574-d82a625a6373/
hade the same problem. But i dont fully understand his solution. The main problem with his example is i dont know what his function looks like on the C side. He says at the end his C function recives a **mystrucarray but i dont know how to mainipulate the values of that. Can anybody help me off in the right direction. Would be so grateful.
best regards
/Rob
Comment