接到一個(gè)項(xiàng)目,對(duì)方提供了一個(gè)dll和動(dòng)態(tài)庫函數(shù)說明文檔,文檔內(nèi)的 參數(shù)類型為string ,請(qǐng)問下各位。string 類型對(duì)應(yīng)C++ 什么類型啊,char wchar_t 等都試過了不對(duì)。C++代碼typedef int (WINAPI *tool)(int port,const wchar_t *userid[]); HMODULE hDLL = LoadLibrary(L"IcCard.dll"); if(hDLL != NULL) { tool too = tool(GetProcAddress(hDLL, "ic_test")); if(too != NULL) { const wchar_t * userid = L"123456"; //char userid[] = "123456"; int ss = too(1,&userid); printf("%d",ss); } }Delphi 動(dòng)態(tài)庫函數(shù)function ic_test(port: integer;
userid: string;
): integer;stdcall; 幫幫忙啊
2 回答
- 2 回答
- 0 關(guān)注
- 968 瀏覽
添加回答
舉報(bào)
0/150
提交
取消