请问谁知道这是什么错误?急!!!
我直接在VC6里面打开一个老的例子程序,Omnidemo.mak文件,提示说这个程序是用vc1.5或更老的版本写的,问是否转换成新格式?先不管他,转换,然后编译,出来一大堆警告和一个错误:(请大家帮忙看看,给点提示,我从没用过SDK编程,可是这个是老板催着要的,HELP!!!)
--------------------Configuration: Omnidemo - Win32 Debug--------------------
Compiling resources...
D:\MyProjects\Vc\Omni200pNew\Source\omnipanl.h(58) : warning RC4005: 'IDCLOSE' : redefinition
D:\MyProjects\Vc\Omni200pNew\Source\omnianno.h(59) : warning RC4005: 'IDHELP' : redefinition
Compiling...
Omnidemo.c
D:\MyProjects\Vc\Omni200pNew\Source\omnipanl.h(58) : warning C4005: 'IDCLOSE' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winuser.h(7545) : see previous definition of 'IDCLOSE'
D:\MyProjects\Vc\Omni200pNew\Source\omnianno.h(59) : warning C4005: 'IDHELP' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winuser.h(7546) : see previous definition of 'IDHELP'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(193) : warning C4028: formal parameter 1 different from declaration
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(193) : warning C4028: formal parameter 2 different from declaration
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(208) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(239) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(244) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(329) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(329) : warning C4113: 'int (__stdcall *)()' differs in parameter lists from 'int (__stdcall *)(struct HWND__ *,unsigned int ,unsigned int ,long )'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(566) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(566) : warning C4113: 'int (__stdcall *)()' differs in parameter lists from 'int (__stdcall *)(struct HWND__ *,unsigned int ,unsigned int ,long )'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(578) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(578) : warning C4113: 'int (__stdcall *)()' differs in parameter lists from 'int (__stdcall *)(struct HWND__ *,unsigned int ,unsigned int ,long )'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1435) : warning C4047: 'function' : 'struct HWND__ *' differs in levels of indirection from 'unsigned short '
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1435) : warning C4024: 'GetDlgCtrlID' : different types for formal and actual parameter 1
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1802) : warning C4028: formal parameter 2 different from declaration
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1802) : warning C4028: formal parameter 3 different from declaration
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1806) : warning C4133: '=' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1807) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
D:\MyProjects\Vc\Omni200pNew\Source\Omnidemo.c(1836) : warning C4133: 'function' : incompatible types - from 'struct HWND__ *' to 'struct HINSTANCE__ *'
Linking...
.\Omnidll.lib : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.
Omnidemo.exe - 1 error(s), 22 warning(s)