🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1567

Errors on winhttp.h

#1567
From: Thorsten Kettner
Date: Mon, 16 Jul 2007 09:39
28 lines
1647 bytes
Has anyone successfully included winhttp.h yet? I get a lot of
warnings and errors trying it:

[C++ Warning] winhttp.h(46): W8017 Redefinition of 'BOOLAPI' is 
not identical 
...
'HTTP_VERSION_INFO' 
[C++ Error] wininet.h(462): E2344 Earlier declaration of 'HTTP_VERSION_INFO' 
...

I tried NO_WIN32_LEAN_AND_MEAN, but that didn't change anything.
I replaced wininet.hpp by an empty file, as this is the one 
containing HTTP_VERSION_INFO, but then I get the error E2189
Cannot initialize external variable on this code in winhttp.h:

BOOLAPI
WinHttpTimeFromSystemTime
(
    __in CONST SYSTEMTIME *pst,  // input GMT time
    __out_ecount(WINHTTP_TIME_FORMAT_BUFSIZE) LPWSTR pwszTime // output string buffer
);

The thing I actually want to do with winhttp is to call a 
website silently from my code and read its html.

TIA,
Thorsten.
Technical Details
Message-ID: <469b3cbd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,361f119ea15dcccd,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Subject: Errors on winhttp.h
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.91     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <469b3cbd$1@newsgroups.borland.com>
Date: 16 Jul 2007 02:39:09 -0700
X-Trace: newsgroups.borland.com 1184578749 207.105.83.66 (16 Jul 2007 02:39:09 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail