⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_60669.htm

📁 vc
💻 HTM
字号:
<p>
序号:60669 发表者:mm2003 发表日期:2003-11-14 16:32:50
<br>主题:这两个头文件哪里可以找到?
<br>内容:在编译一个软件的例子程序时,提示找不到以下头文件<BR>&lt;cfgmgr32.h&gt;<BR>&lt;newdev.h&gt;<BR>不知有人知道否?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:浪际天涯 回复日期:2003-11-14 22:53:45
<br>内容:我给你传上来
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-18 15:23:45
<br>内容:这两个文件编译的时候需要NTDDK.H,我将NTDDK.H包含后,再编译总是报ntdef.h中的与VC下VC98/INCLUDE/WINNT.H中定义的宏变量重复定义,这个错误如何解决呢?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:浪际天涯 回复日期:2003-11-18 15:30:37
<br>内容:能找到是哪个宏吗?能找到的话就加上#ifndef ..#define #endif
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-18 15:31:50
<br>内容:主要是抱错太多了,有100多个呀
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:浪际天涯 回复日期:2003-11-18 15:38:33
<br>内容:帖一部分错误信息上来
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-18 15:41:32
<br>内容:F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(80) : warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(47) : see previous definition of 'MAX_NATURAL_ALIGNMENT'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(602) : error C2011: '_FLOAT128' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(649) : error C2011: '_LARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(668) : error C2011: '_ULARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(690) : error C2011: '_LUID' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(807) : warning C4005: 'UInt32x32To64' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(498) : see previous definition of 'UInt32x32To64'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(841) : error C2084: function 'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(857) : error C2084: function '__int64 __stdcall Int64ShraMod32(__int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(873) : error C2084: function 'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1057) : error C2011: '_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1067) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1228) : fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory<BR>DriverNT4.cpp<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(80) : warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(47) : see previous definition of 'MAX_NATURAL_ALIGNMENT'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(602) : error C2011: '_FLOAT128' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(649) : error C2011: '_LARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(668) : error C2011: '_ULARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(690) : error C2011: '_LUID' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(807) : warning C4005: 'UInt32x32To64' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(498) : see previous definition of 'UInt32x32To64'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(841) : error C2084: function 'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(857) : error C2084: function '__int64 __stdcall Int64ShraMod32(__int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(873) : error C2084: function 'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1057) : error C2011: '_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1067) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1228) : fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory<BR>DriverVXD.cpp<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(80) : warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(47) : see previous definition of 'MAX_NATURAL_ALIGNMENT'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(602) : error C2011: '_FLOAT128' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(649) : error C2011: '_LARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(668) : error C2011: '_ULARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(690) : error C2011: '_LUID' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(807) : warning C4005: 'UInt32x32To64' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(498) : see previous definition of 'UInt32x32To64'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(841) : error C2084: function 'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(857) : error C2084: function '__int64 __stdcall Int64ShraMod32(__int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(873) : error C2084: function 'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1057) : error C2011: '_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1067) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1228) : fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory<BR>DriverWDM.cpp<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(80) : warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(47) : see previous definition of 'MAX_NATURAL_ALIGNMENT'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(602) : error C2011: '_FLOAT128' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(649) : error C2011: '_LARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(668) : error C2011: '_ULARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(690) : error C2011: '_LUID' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(807) : warning C4005: 'UInt32x32To64' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(498) : see previous definition of 'UInt32x32To64'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(841) : error C2084: function 'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(857) : error C2084: function '__int64 __stdcall Int64ShraMod32(__int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(873) : error C2084: function 'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1057) : error C2011: '_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1067) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1228) : fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory<BR>wdreg.cpp<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(80) : warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(47) : see previous definition of 'MAX_NATURAL_ALIGNMENT'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(602) : error C2011: '_FLOAT128' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(649) : error C2011: '_LARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(668) : error C2011: '_ULARGE_INTEGER' : 'union' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(690) : error C2011: '_LUID' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(807) : warning C4005: 'UInt32x32To64' : macro redefinition<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(498) : see previous definition of 'UInt32x32To64'<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(841) : error C2084: function 'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(857) : error C2084: function '__int64 __stdcall Int64ShraMod32(__int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(873) : error C2084: function 'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)' already has a body<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1057) : error C2011: '_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1067) : error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition<BR>F:\WINDRIVER602\SAMPLES\INCLUDE\ntdef.h(1228) : fatal error C1083: Cannot open include file: 'guiddef.h': No such file or directory<BR>Generating Code...<BR>Error executing cl.exe.<BR>Creating browse info file...<BR>BSCMAKE: error BK1506 : cannot open file '.\Debug\common_install.sbr': No such file or directory<BR>Error executing bscmake.exe.<BR><BR>wdreg.exe - 51 error(s), 10 warning(s)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:浪际天涯 回复日期:2003-11-18 15:45:54
<br>内容:把ntdef.h放到stdafx.h中试试
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-18 15:56:22
<br>内容:这个项目没有stdafx.h
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:浪际天涯 回复日期:2003-11-18 16:00:09
<br>内容:在#include &#34;ntdef.h&#34;时这样写试试<BR>#ifndef __ntdef__<BR>#define __ntdef__<BR>#endif<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-18 16:14:45
<br>内容:问题依然存在
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:浪际天涯 回复日期:2003-11-18 17:53:37
<br>内容:那我也帮不了你了,哪位高手来看看吧
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:mm2003 回复日期:2003-11-19 09:50:10
<br>内容:看来也没有人能够回答了,就将分给你吧,谢谢!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -