- 论坛徽章:
- 3
|
本帖最后由 pxf520 于 2011-12-08 23:33 编辑
函数原型
WINBASEAPI
__out
LPSTR
WINAPI
lstrcatA(
__inout LPSTR lpString1,
__in LPCSTR lpString2
);
动态调用后
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); |
|