C#调用DLL的问题
char* strParameters[4];
strParameters[0] = (char*)malloc(256);
strParameters[1] = (char*)malloc(256);
strcpy(strParameters[0],"F:\\abc\\");
strcpy(strParameters[1],"F:\\abc\\");
int nRet = m_InitConnect(strParameters,4);
以上是在C++中调用m_InitConnect DLL动态链接库中的m_InitConnect这个方法.
如果在C#中该如何写?
char* strParameters[4] 要转成什么?