Newsgroup: it.comp.programmare.win32
Titolo: winhttp.h

Ciao,
sto sviluppando un metodo per fare un richiesta HTTP tramite
le librerie winhttp.
Al momento della compilazione mi viene fatto notare che c'e' un errore
di sintassi nella libreria.
L' errore in questione e':
c:\program files\microsoft visual studio\vc98\include\winhttp.h(29) :
error C2146: syntax error : missing ';' before identifier 'HINTERNET'
Ora, sono andato a vedere la librerie e in quella riga viene definito
un tipo HINTERNET attraverso typedef LPVOID HINTERNET;
Quali possono essere le origini del problema ? 
Sopratutto come faccio a far comilare la mia classe ??? 
Grazie in anticipo
Ciao.
Filippo

 Quali possono essere le origini del problema ? 
includi <wininet.h> prima di <winhttp.h>
-- 
  < 
http://www.reactos.com/
 >  Open source clone of Windows NT. Current
      Don't stand, REACT!      version 0.1.5. C, C++ and ASM developers
                               and beta testers are welcome!

Ho gia incluso le seguenti liberie nelle seguenti ordini:
#include <windows.h>
#include <stdio.h>
#include <wininet.h>
#include <Winhttp.h>
ed ho linkato nella categoria generale Winhttp.lib.
Compilando ho una sfilza di errrori all' interno della libreria 
da cosa puo' dipendere :
:\programmi\microsoft visual studio\vc98\include\wininet.h(297) :
error C2146: syntax error : missing ';' before identifier 'dwResult'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(297) :
error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(297) :
error C2501: 'dwResult' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(312) :
error C2146: syntax error : missing ';' before identifier 'Socket'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(312) :
error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(312) :
error C2501: 'Socket' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(869) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(879) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(902) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(910) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(929) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(935) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(957) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(972) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1270) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1433) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1440) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1455) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1464) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1477) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1484) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1499) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1507) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1545) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1552) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1623) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(1631) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2013) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2021) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2034) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2041) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2062) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2072) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2320) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2330) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2423) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2430) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2453) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2459) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2545) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2552) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2629) :
error C2065: 'DWORD_PTR' : undeclared identifier
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2629) :
error C2146: syntax error : missing ')' before identifier 'dwContext'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2632) :
error C2059: syntax error : ')'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2633) :
error C2275: 'DWORD' : illegal use of this type as an expression
        c:\programmi\microsoft visual
studio\vc98\include\windef.h(141) : see declaration of 'DWORD'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2633) :
error C2275: 'LPVOID' : illegal use of this type as an expression
        c:\programmi\microsoft visual
studio\vc98\include\windef.h(158) : see declaration of 'LPVOID'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2633) :
error C2165: 'left-side modifier' : cannot modify pointers to data
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2633) :
error C2071: 'PFN_AUTH_NOTIFY' : illegal storage class
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2644) :
error C2146: syntax error : missing ';' before identifier 'dwContext'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2644) :
error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(2644) :
error C2501: 'dwContext' : missing storage-class or type specifiers
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3480) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3488) :
error C2061: syntax error : identifier 'DWORD_PTR'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3515) :
error C2146: syntax error : missing ')' before identifier
'dwConnection'
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3515) :
warning C4229: anachronism used : modifiers on data are ignored
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3515) :
error C2491: 'InternetHangUp' : definition of dllimport data not
allowed
c:\programmi\microsoft visual studio\vc98\include\wininet.h(3516) :
error C2059: syntax error : ')'
c:\programmi\microsoft visual studio\vc98\include\winhttp.h(45) :
warning C4005: 'BOOLAPI' : macro redefinition

 error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
hai un Visual Studio antico. Usa l'SDK aggiornato
