Red Gate forums :: View topic - wrapper c++ to c#: sending "void" as parameter
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

wrapper c++ to c#: sending "void" as parameter

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
yus



Joined: 28 Sep 2007
Posts: 1

PostPosted: Fri Sep 28, 2007 9:57 pm    Post subject: wrapper c++ to c#: sending "void" as parameter Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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