>Anybody see the problem?
Hi Erik, just a SWAG, but what about changing the return value of InternetOpen to LONG. Since you are passing in the return value of this function to the next one, maybe it has something to do with it.
DECLARE INTEGER InternetOpen IN WinInet.DLL ;
STRING, ;
INTEGER, ;
STRING, ;
STRING, ;
INTEGER
Becomes:
DECLARE LONG InternetOpen IN WinInet.DLL ;
STRING, ;
INTEGER, ;
STRING, ;
STRING, ;
INTEGER
Just a guess.
HTH,
Bill