0

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. :)

1 Answer 1

1

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.

1
  • Indeed and you are correct. The fact is that it got really confusing as I was researching the WinInet stuff and found so many different classes and code samples, to what seemed like, an easy few API calls. So being new and naive to WinInet, I didn't want to miss anything and so asked for this wrapper that would contain the experience of someone who has used it in the real world already. Anyhow, I worked it out according to your suggestion and it should be fine. Thanks. :) May 22, 2009 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.