在 Netbeans 6.8 中使用 Windows 头文件

发布于 2024-08-24 15:58:20 字数 349 浏览 7 评论 0原文

我正在尝试在 Netbeans 中创建一个 Windows 应用程序。 使用 Visual Studio 时,使用 tchar.h 这样的文件是没有问题的,

我已经收到了包含这些文件的基本文件结构,我正在尝试让它们在 Netbeans IDE 上工作,但 Netbeans 似乎不允许使用 Visual 中的文件工作室。

我尝试添加 tchar.h 文件及其所需的所有其他文件(包括一些 C++ 核心文件)并注释这些护理文件中写入的错误:

#error 错误:使用 C 运行时库内部头文件。

但 netbenas 在同一文件夹中找不到 tchar.h 文件...

I'm trying to make an windows application within Netbeans.
When using Visual studio it is no problem to use files like tchar.h

I have receaved a basic file structure containing those and I'm trying to get them to work on Netbeans IDE but it seems that Netbeans won't allow using files from Visual Studio.

I have tried to add the tchar.h file and all other file it required (including some C++ core files) and commenting the errors written in those care files:

#error ERROR: Use of C runtime library internal header file.

But netbenas can't find the tchar.h file while being in same folder...

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

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

发布评论

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

评论(1

唠甜嗑 2024-08-31 15:58:20

如果您使用 gcc,您可能会考虑使用 unix 样式宽字符而不是 microsoft 特定版本。查看 wchar.h

http://en.wikipedia.org/wiki/Wchar.h

If you're using gcc you might consider using the unix style wide characters instead of the microsoft specific version. Look at wchar.h

http://en.wikipedia.org/wiki/Wchar.h

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