摘要:C++資料型態轉為C#所用
C++ C#
handle Intptr
char* string
double* double
example:
as follows in C# language:
[DllImportAttribute(@"C:\AdviewVcLib.dll", EntryPoint = "Open")]
public static extern IntPtr Open(string local_ip, string remote_ip, int remote_port, string user_name, string password);
as follows in C++ language:
//typedef HANDLE (*POPEN)(char *local_ip,char *remote_ip,int remote_port,char *user_name,char *password);