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

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top