Discussion:
WinHttp Build Problem
(too old to reply)
Barry
2005-08-15 08:28:16 UTC
Permalink
Hi

When building my project on Windows 2003 Server (without Sp1) i get the
following error messages

filename.cpp(16): error C3501: there is no typelib registered for ProgID
'WinHttp.WinHttpRequest.5.1'
filename.cpp(16): fatal error C1103: fatal error importing progid:
'WinHttp.WinHttpRequest.5.1'

for the following source code line

#import <progid: WinHttp.WinHttpRequest.5.1> no_namespace
raw_interfaces_only

I do not get this error when building on Windows XP

Does anyone how i can overcome this problem

Barry
Stephen Sulzer
2005-08-16 06:39:06 UTC
Permalink
On Windows Server 2003, WinHTTP became a side-by-side (SxS) assembly
component. This caused a few problems with developer tools that consume COM
components (such as Visual Basic and Windows Scripting Host)--the WinHTTP
typelib and COM class information does not appear in the registry.
(http://groups-beta.google.com/group/microsoft.public.winhttp/browse_frm/thread/e3c3ae6f66c43d5a/9bc6defe9b27836f/)

As a workaround, try specifying the full path to winhttp.dll to #import
instead of the progid. Note that on Windows Server 2003, winhttp.dll is
located under
\WINDOWS\WinSxS\x86_Microsoft.Windows.WinHTTP_6595b64144ccf1df_...

This issue may have been fixed for Server 2003 SP1 (I am not certain if
was).

(Also, there is a microsoft.public.winhttp newsgroup dedicated to WinHTTP
support.)

- Stephen

Continue reading on narkive:
Search results for 'WinHttp Build Problem' (Questions and Answers)
7
replies
Windows Service Pack 2 Uninstall Nightmare?
started 2008-02-15 12:51:36 UTC
software
Loading...