F fox_s Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-15 #1 我用delphi做的DLL其中一个函数function Ggg(var achar):bool;export; cdecl; 在vc中如何调用void Ggg(char * x);来取得所传参数呢?
K kilma Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-15 #2 HINSTANCE hInst = LoadLibrary("你的dll名称"); if(hInst) { typedef BOOL (WINAPI *MYFUNC)(char* a); MYFUNC fun = NULL; fun=(MYFUNC)GetProcAddress(hInst, "Ggg"); BOOL x; x=fun(a); FreeLibrary(hInst); }
HINSTANCE hInst = LoadLibrary("你的dll名称"); if(hInst) { typedef BOOL (WINAPI *MYFUNC)(char* a); MYFUNC fun = NULL; fun=(MYFUNC)GetProcAddress(hInst, "Ggg"); BOOL x; x=fun(a); FreeLibrary(hInst); }
M mingzy Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-15 #4 char aa; Ggg(&aa); 或者 char aa[100]; Ggg (aa);