Archived

This topic is now archived and is closed to further replies.

using the winHTTP.dll

This topic is 5334 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all, I need some functionality of winHTTP which is embedded in the winHTTP.DLL . How do I include the winHTTP.DLL in my project. Do I have to use some sort of #include (like a header )?? regards Stijn

Share this post


Link to post
Share on other sites
I can't find where I have to add the dll to my project. Google and msdn didnt help me.

regards
Stijn

PS: I guess this applies to all DLL and not just the winHTTP.DLL

[edited by - Tarscher on May 6, 2003 11:38:36 AM]

Share this post


Link to post
Share on other sites
quote:
...you must link to WinHttp.lib and have WinHttp.dll installed on your system.


put winhttp.lib in the object/libraries modules option under project->settings->link tab

it should automatically find the dll for you at runtime.

Share this post


Link to post
Share on other sites
The problem is I only have the dll file (winHTTP.dll) not the lib file . Since winHTTP 5.1 comes standard with win 2000 SP 3 (which i m running) it doesn''t seem to be that I can download that lib somewhere...

What am I missing here?

regards
Stijn

Share this post


Link to post
Share on other sites
You need to download the WinHTTP 5.1 SDK..which I think is part of the Feb2003 Plafform SDK.

Also, are you trying to use the DLL exported functions or the COM component WinHttpRequest, which is contained in the dll too?

If you''re trying to use the exports then you need the lib file - so get the SDK.

Otherwise you just need to create the component using CoCreateInstance (or CoCreateInstanceEx) depending on your needs.

If you don''t know which one you want to use then this might help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/choosing_a_winhttp_interface.asp

Share this post


Link to post
Share on other sites
thanks for the clear reply. The first time someone told me that winHTTP is included in that SDK. I could find it anywhere else.

It all works fine now and I m using the COM interface.

thanks again and regards
Stijn

Share this post


Link to post
Share on other sites