[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] help me in an urlmon workaround
From:       Earnie Boyd <earnie () users ! sourceforge ! net>
Date:       2009-01-26 12:56:11
Message-ID: 20090126075611.wycmwwbwmqwowko4 () mail ! progw ! org
[Download RAW message or body]


Quoting Cyber Core <cybercorecentre@gmail.com>:

> Hi guys,
>
> After some googling I noticed mingw don't support netlib (urlmon is a part
> of it). I tried to do hooks, share the win SDK dir but that just lead to
> countless of errors and I only need 1 function at the moment so I thought
> exporting the api call would be a good idea. This simple code works fine
> with MSVC:
>
> #include <windows.h>
>
> typedef HRESULT( __stdcall *UDTF )( LPUNKNOWN, LPCTSTR, LPCTSTR, DWORD,
> LPBINDSTATUSCALLBACK );
> UDTF xURLDownloadToFile;
>
> void main()
> {
>     HMODULE hUrlmon = LoadLibrary("urlmon.dll");
>        xURLDownloadToFile = (UDTF)GetProcAddress( hUrlmon,
> "URLDownloadToFileA");
>        xURLDownloadToFile( 0, "http://192.168.1.1/pack0.pak",
> "C:\\pack.pak", 0, 0 );
>    FreeLibrary( hUrlmon );
>
> }
>
> With mingw I get this error:
>
> error: expected declaration specifiers or '...' before
> 'LPBINDSTATUSCALLBACK'
>

File a report, see http://www.mingw.org/Reporting_Bugs for how.  We do 
not have this API defined that I can find.

Earnie

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

_______________________________________________
This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) HTML/MIME encoded mail
3) Improper quoting
4) Improper trimming
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic