I have a dll that is written in c++. And I am p/invoking to call the functions.
I have this c++ declaration.
int dll_registerAccount(char* username, char* password);
I have done this dllimport declaration:
[DllImport("pjsipDlld")]
static extern int dll_registerAccount(IntPtr username, IntPtr password);
Would my DllImport be the equivalent to the c++ using IntPtr?
Many thanks for any advice,
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…