GetProcAddress得到的值都是FARPROC类型的
基本的东西查查MSDN吧还有C的基础打好
不回帖了 简单的把13L问题解释下
The LPTHREAD_START_ROUTINE type defines a pointer to this callback function. ThreadProc is a placeholder for the application-defined function name.
请问楼主,编译程序时出现这些问题,不知如何修正,请指教!!
Compiling...
test1.cpp
C:\test\test1\test1.cpp(51) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(56) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(57) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(58) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(59) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(64) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(65) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(66) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(67) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(68) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(69) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(70) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(80) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(92) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(93) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(99) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(133) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(143) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
C:\test\test1\test1.cpp(217) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(218) : error C2664: 'FreeLibrary' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(221) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(222) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(223) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(224) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(225) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(226) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(227) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(228) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(229) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(230) : error C2664: 'FreeLibrary' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\test\test1\test1.cpp(279) : error C2664: 'CreateRemoteThread' : cannot convert parameter 4 from 'void *' to 'unsigned long (__stdcall *)(void *)'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Error executing cl.exe.