Visual C++ 2005 无法找到 dxtrans.h,尽管它位于我的包含目录的第一个文件夹中

发布于 2024-10-06 09:03:53 字数 247 浏览 0 评论 0原文

我将 2007 directx sdk 包含目录设置为 Visual C++ 2005 中包含文件目录列表中的第一个条目,并且该目录包含 dxtrans.h。然而,当我尝试构建我的项目时,我得到“要编译 qedit.h,您必须安装 DirectX 9 SDK,才能获取 dxtrans.h 标头。”,并伴有 Windows sdk 标头(amstream.h、 qedit.h 等)。为了让编译器找到 dxtrans.h,我还需要执行其他一些魔法吗?该错误消息是为了转移注意力吗?

I have the 2007 directx sdk include directory set as the first entry in the Include Files directory list in Visual C++ 2005, and that directory contains dxtrans.h. Yet when I try to build my project, I get "To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.", accompanied by hundreds of syntax errors in windows sdk headers (amstream.h, qedit.h, etc). Is there some other magic incantation I need to perform in order to get the compiler to find dxtrans.h? Is the error message a red herring?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只有影子陪我不离不弃 2024-10-13 09:03:53

打开一个新文件: dxtrans.h
请将以下内容粘贴到文件中,然后将文件移动到 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include

/* Fixes issue with Windows SDK */
#define __IDxtCompositor_INTERFACE_DEFINED__
#define __IDxtAlphaSetter_INTERFACE_DEFINED__
#define __IDxtJpeg_INTERFACE_DEFINED__
#define __IDxtKey_INTERFACE_DEFINED__

open a new file: dxtrans.h
please paste follow content into the file, then move file to C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include

/* Fixes issue with Windows SDK */
#define __IDxtCompositor_INTERFACE_DEFINED__
#define __IDxtAlphaSetter_INTERFACE_DEFINED__
#define __IDxtJpeg_INTERFACE_DEFINED__
#define __IDxtKey_INTERFACE_DEFINED__
卖梦商人 2024-10-13 09:03:53

是的,这确实是一条红鲱鱼。这不是一条错误消息,只是一条旨在提供帮助的通知。它的生成方式是:

#pragma message("To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.")

注意前几条真实编译器错误消息,无论它们是什么。

Yes, it is indeed a red herring. It is not an error message, merely a notification that was meant to be helpful. It is generated by:

#pragma message("To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.")

Pay attention to the first few real compiler error messages, whatever they may be.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文