C++ 适用于 Windows Mobile 的 WinInet 包装器

发布于 2024-07-22 13:20:17 字数 361 浏览 9 评论 0原文

环境:Win32、C++/VS2008

我需要使用 Windows Mobile 手机从互联网发出 HTTP(不是 HTTPS)请求,以节省时间 + 重新发明轮子,想知道这里是否有人可能已经分享了一个简单的 C++(Win32?)WinInet 包装器或类似的类?

到目前为止,我使用 Google 找到的最接近的是 codeproject,但想知道是否有人这里可能还有更好的实现。

谢谢。 :)

Environment: Win32, C++/VS2008

I'm getting into the need to make HTTP (not HTTPS) requests from the internet using a Windows Mobile phone and to save time + reinventing the wheel, wondered if anybody here might have kindly shared a simple C++ (Win32?) WinInet wrapper or similar class?

The closest I found so far using Google is on codeproject, but wondered if someone here might yet have a better implementation.

Thank you. :)

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

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

发布评论

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

评论(1

深爱不及久伴 2024-07-29 13:20:17

Windows 上的 WinInet API 与 Windows CE 上的相同。 而且它的编程极其简单。 为什么在继续之前需要一个非常简单的 C API 的 C++ 包装器?

如果您需要有关 WinInet 的帮助,请提出实际问题。

在最简单的情况下,WinInet 的使用将从 InternetOpen 开始,然后是 InternetOpenUrl 和 InternetReadFile。 创建一个类来总结对它的访问实际上是留给读者的一项练习。

The WinInet API is the same on Windows as it is on Windows CE. And its disgustingly easy to program. Why do you need a c++ wrapper for a really simple C API before you can proceed?

If you need help with WinInet, then ask an actual question.

In the simplest case, use of WinInet would start with InternetOpen, followed by InternetOpenUrl and InternetReadFile. Making a class to wrap up access to that is really an exercise left for the reader.

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