Author Topic: WinHTTP  (Read 3809 times)

dieb

  • Guest
WinHTTP
« on: July 21, 2010, 05:48:09 am »
Hello all,

I'm trying to use WinHttp API in my library project, but as thie is not present in mingw install, i simply copied WinHttp.h into Mingw includes folder and winhttp.lib into the lib folder. I did not set any path to psdk installation in order to keep using mingw headers and lib.

Just including WinHttp.h give me errors :
Code: [Select]
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\Winhttp.h|299|error: expected ')' before 'const'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\Winhttp.h|306|error: expected ')' before 'LPCWSTR'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\Winhttp.h|328|error: expected ')' before '(' token|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\Winhttp.h|337|error: expected ')' before 'LPURL_COMPONENTS'|
...

Os there any stpe i missed to use headers and lib not directly provided by mingw?
I'm using code::block 10.05 on Windows7 64 bits

Thank you for your help.