Can't get "typedef INTERNETAPI (*fp)()" to compiled with VC++ 7.0 (unmanaged)

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

The below code compiles fine in VC++ 6.0, but with VC++ 7.0 (VS 2003),
I keep getting an error about "More than one storage class specified".
The #define for INTERNETAPI in VC++ 7.0 expands out to include more
garbage than it did for VC++ 6.0.

Does anyone have any clues as to what I'm doing wrong? Or, need to
change?

#include <WinInet.h>
typedef INTERNETAPI (BOOL WINAPI *fp) (HINTERNET hInternet);
 
Back
Top