| Author |
Message |
yus
Joined: 28 Sep 2007 Posts: 1
|
Posted: Fri Sep 28, 2007 9:57 pm Post subject: wrapper c++ to c#: sending "void" as parameter |
|
|
Hi, i am creating a wrapper for c++ functions into a c# program.
my c++ procedure goes like this
| Code: |
void QS_Init(int x, int y){...}
void QS_LoadDLL (const char *pDLLPath, void **phLoadDLL){...}
|
I have made wrappers before, i know that i have to do goes something like this
| Code: |
[DllImport ("ViacoNet.dll")]
public static extern void QS_Init(int x, int y);
[DllImport ("ViacoNet.dll")]
public unsafe static extern void QS_LoadDLL(string pDLLPath, ????); |
What i dont know is how to send a void as a reference for my procedure?? how do i do that?? how do i map the "void **phLoadDLL" into c#??? what goes instead of the "(string pDLLPath, ????);"
any help is totally and completely appreciated, thanks!!! |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group