- 論壇徽章:
- 3
|
本帖最后由 pxf520 于 2011-12-08 23:33 編輯
函數(shù)原型
WINBASEAPI
__out
LPSTR
WINAPI
lstrcatA(
__inout LPSTR lpString1,
__in LPCSTR lpString2
);
動態(tài)調(diào)用后
typedef __out LPSTR (WINAPI *lstrcatAQ)
(
__inout LPSTR lpString1,
__in LPCSTR lpString2
);
lstrcatAQ aalstrcatA=(lstrcatAQ)GetProcAddress(LoadLibrary("KERNEL32.dll"),"lstrcatA");
新手,請見諒,紅色的部分lstrcatA不知道可以用下面的方法不?
typedef __out LPSTR (WINAPI *lstrcatAQ)
(
__inout LPSTR lpString1,
__in LPCSTR lpString2
);
char xa[] = {'l','s','t','r','c','a','t','A','\0'};
lstrcatAQ qqlstrcatA=(lstrcatAQ)GetProcAddress(LoadLibrary("KERNEL32.dll"),xa); |
|