|
原帖由 Yonsm 于 2007-1-9 12:21 AM 发表
Visual Studio 6.0 SP6 不支持 内联汇编,我使用了汇编来修改内存中 USER32.DLL 的关机代码,让他来调用 XCMD.EXE 的关机命令。
e...我想想,到底 SP6 不支内联汇编,还是不支持 MMS/SSE/SSE2 intrinsic 指 ...
--------------------Configuration: XCMD - Win32 Debug--------------------
Compiling...
XCMD.cpp
WARNING: Could not detect device driver state in Visual C++ 6.0!
E:\C++教程\XCMD-VC6\XCMD.cpp(187) : error C2664: 'SetupIterateCabinetA' : cannot convert parameter 3 from 'unsigned int (void *,unsigned int,unsigned long,unsigned long)' to 'unsigned int (__stdcall *)(void *,unsigned int,unsigned int,unsigned int)'
None of the functions with this name in scope match the target type
E:\C++教程\XCMD-VC6\XCMD.cpp(822) : error C2065: 'ULONG_PTR' : undeclared identifier
E:\C++教程\XCMD-VC6\XCMD.cpp(822) : error C2065: 'puToken' : undeclared identifier
E:\C++教程\XCMD-VC6\XCMD.cpp(822) : error C2059: syntax error : 'const'
E:\C++教程\XCMD-VC6\XCMD.cpp(823) : error C2146: syntax error : missing ')' before identifier 'uToken'
E:\C++教程\XCMD-VC6\XCMD.cpp(823) : error C2165: 'left-side modifier' : cannot modify pointers to data
E:\C++教程\XCMD-VC6\XCMD.cpp(823) : error C2071: 'PGdiplusShutdown' : illegal storage class
E:\C++教程\XCMD-VC6\XCMD.cpp(823) : error C2059: syntax error : ')'
E:\C++教程\XCMD-VC6\XCMD.cpp(835) : error C2146: syntax error : missing ';' before identifier 's_uToken'
E:\C++教程\XCMD-VC6\XCMD.cpp(835) : error C2065: 's_uToken' : undeclared identifier
E:\C++教程\XCMD-VC6\XCMD.cpp(841) : error C2146: syntax error : missing ';' before identifier 'pGdiplusStartup'
E:\C++教程\XCMD-VC6\XCMD.cpp(841) : error C2065: 'pGdiplusStartup' : undeclared identifier
E:\C++教程\XCMD-VC6\XCMD.cpp(877) : error C2146: syntax error : missing ';' before identifier 'GetProcAddress'
E:\C++教程\XCMD-VC6\XCMD.cpp(1128) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
执行 cl.exe 时出错.
XCMD.exe - 1 error(s), 0 warning(s) |
|