C++代码移植到NDK环境缺少windows.h之类的头文件?

发布于 2025-01-17 03:21:34 字数 741 浏览 4 评论 0原文

最近在做本科毕​​业设计,是一个基于Android的DMB播放器(依靠DAB广播广播信号)。

我导师给我的参考资料都是基于Windows的播放器,我正在移植一些我工作时遇到的一些问题的C++代码。例如,我的导师给我的许多 C++ 代码中都引入了 afxwin.h 和 windows.h。

我的工作是Java服务器开发,我是一个Android新手和一个C++新手。

缺少的头文件看起来像这样

#include "StdAfx.h"
#include "mpeg_dec.h"
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>       // MFC support for Internet Explorer 4 Common Controls

谢谢你的回答,这对我来说将是一个巨大的帮助(顺便说一句,我是一名来自中国的学生,英语写作不是我的强项,所以上面的一些内容来自谷歌翻译,谢谢您的理解!)

Recently I am doing my undergraduate graduation project, which is an Android-based DMB player (relying on DAB broadcast radio signals).

The reference materials my instructor gave me are all Windows-based players, and I am porting some C++ code I encountered some problems when I was working. For example, afxwin.h and windows.h were introduced into many of the C++ codes that my instructor gave me.

My job is Java server development, and I am an Android novice and a C++ novice.

The missing header file looks like this

#include "StdAfx.h"
#include "mpeg_dec.h"
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>       // MFC support for Internet Explorer 4 Common Controls

Thank you for your answers, it will be a huge help to me (by the way, I am a student from China, English writing is not my strong point, so some of the above are from Google Translate, thank you for understanding!)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文