我是一个VC初学者,无意中看到袁哥的 aspcode.c(cnhonker下载),很是喜欢,可是一编译,却出现很多错误,凭我现在的实力,只会改正其中几句类型不匹配的错误,可还有其他很多错。同时也非常奇怪,已经发布的源代码怎么还会有近百处错?所以我觉得有可能是我vc的设置问题?
我是直接建了一个win32 控制台程序,然后选的空工程,最后建了一个aspcode.c,把代码直接靠进去编译的,不知道对不对?不知道还需不需要除ws2_32之外的其他库的添加!我现在主要是想问一下谁有无错的源文件?能不能给我发一份。如没有,请教其中几个我编译的错误如何改?
1._chkesp' : undeclared identifier // _chkesp 在那定义的?
2.writeclient(ConnID,*(int *)(ecb+0x6c),&k,0); //出现:'int (__stdcall *)(void)' : too many actual parameters 错误源码在: http://www.cnhonker.net/Files/show.php?id=43
我是直接建了一个win32 控制台程序,然后选的空工程,最后建了一个aspcode.c,把代码直接靠进去编译的,不知道对不对?不知道还需不需要除ws2_32之外的其他库的添加!我现在主要是想问一下谁有无错的源文件?能不能给我发一份。如没有,请教其中几个我编译的错误如何改?
1._chkesp' : undeclared identifier // _chkesp 在那定义的?
2.writeclient(ConnID,*(int *)(ecb+0x6c),&k,0); //出现:'int (__stdcall *)(void)' : too many actual parameters 错误源码在: http://www.cnhonker.net/Files/show.php?id=43
--------------------Configuration: t2 - Win32 Debug--------------------
Compiling...
t2.cpp
E:\VC_PROJECTS\t2\t2.cpp(244) : error C2065: '_chkesp' : undeclared identifier
E:\VC_PROJECTS\t2\t2.cpp(245) : error C2440: '=' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(311) : error C2440: '=' : cannot convert from 'void (__cdecl *)(void)' to 'char *'
There is no context in which this conversion is possible
E:\VC_PROJECTS\t2\t2.cpp(326) : error C2440: '=' : cannot convert from 'void (__cdecl *)(char *)' to 'char *'
There is no context in which this conversion is possible
E:\VC_PROJECTS\t2\t2.cpp(477) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'unsigned int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(497) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'unsigned int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(532) : error C2660: 'iisreset' : function does not take 2 parameters
E:\VC_PROJECTS\t2\t2.cpp(536) : error C2660: 'iisdie' : function does not take 2 parameters
E:\VC_PROJECTS\t2\t2.cpp(678) : error C2440: 'initializing' : cannot convert from 'char *' to 'int (__stdcall *)(void)'
There is no context in which this conversion is possible
E:\VC_PROJECTS\t2\t2.cpp(700) : error C2440: '=' : cannot convert from 'const unsigned int' to 'int *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(701) : error C2440: '=' : cannot convert from 'char *' to 'int *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(713) : error C2440: '=' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(721) : error C2440: '=' : cannot convert from 'int' to 'int (__stdcall *)(void)'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(731) : error C2440: '=' : cannot convert from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(733) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(734) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(741) : error C2440: '=' : cannot convert from 'int (__stdcall *)(void)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(742) : error C2440: '=' : cannot convert from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(743) : error C2440: '=' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(762) : error C2440: '=' : cannot convert from 'int (__stdcall *)(void)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(763) : error C2440: '=' : cannot convert from 'int (__stdcall *)(void)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(768) : error C2440: '=' : cannot convert from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(770) : error C2440: '=' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(775) : error C2446: '==' : no conversion from 'int *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(775) : error C2040: '==' : 'int' differs in levels of indirection from 'int *'
E:\VC_PROJECTS\t2\t2.cpp(787) : error C2446: '==' : no conversion from 'int (__stdcall *)(void)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(787) : error C2040: '==' : 'int' differs in levels of indirection from 'int (__stdcall *)(void)'
E:\VC_PROJECTS\t2\t2.cpp(788) : error C2440: '=' : cannot convert from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(795) : error C2440: '=' : cannot convert from 'int' to 'int (__stdcall *)(void)'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(796) : error C2440: '=' : cannot convert from 'int' to 'int (__stdcall *)(void)'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(797) : error C2440: '=' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(798) : error C2440: '=' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(813) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(815) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(832) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(833) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(849) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(852) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(858) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(861) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(870) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(889) : error C2197: 'int (__stdcall *)(void)' : too many actual
E:\VC_PROJECTS\t2\t2.cpp(899) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(900) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(909) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(916) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(917) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(919) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(932) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(933) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(938) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(951) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(958) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(964) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(972) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(975) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(976) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(977) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(988) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(993) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1005) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1008) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1014) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1022) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1023) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1024) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1028) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1034) : error C2197: 'int (__stdcall *)(void)' : too many actual parameters
E:\VC_PROJECTS\t2\t2.cpp(1098) : warning C4305: '=' : truncation from 'const int' to 'char'
E:\VC_PROJECTS\t2\t2.cpp(1098) : warning C4309: '=' : truncation of constant value
E:\VC_PROJECTS\t2\t2.cpp(1149) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1152) : error C2440: '=' : cannot convert from 'void *' to 'struct _iobuf *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
E:\VC_PROJECTS\t2\t2.cpp(1153) : error C2664: 'GetFileSize' : cannot convert parameter 2 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1163) : error C2664: 'ReadFile' : cannot convert parameter 4 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1176) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1221) : error C2440: '=' : cannot convert from 'void *' to 'struct _iobuf *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
E:\VC_PROJECTS\t2\t2.cpp(1227) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1260) : error C2664: 'WriteFile' : cannot convert parameter 4 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1267) : error C2664: 'WriteFile' : cannot convert parameter 4 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1283) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1291) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1324) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1332) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1338) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1367) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\VC_PROJECTS\t2\t2.cpp(1374) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.t2.obj - 84 error(s), 2 warning(s)/////////////////////////编译错误 END//////////////////////////////////