Solved InternetOpen() weird error

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

user123

Newbie
Full Member
Jul 8, 2014
17
142
0
Im getting an not-so-IntelliSense error when trying InternetOpen.
COde:
C++:
#include "ftptest.h"

const TCHAR agent[] = "Mozilla Firefox: Arnold Schwarzenegger Edition";
LPCTSTR ptr = agent;
DWORD test1 = INTERNET_OPEN_TYPE_DIRECT;
LPCTSTR test2 = NULL;
LPCTSTR test3 = NULL;
DWORD test4 = NULL;


//PSEUDO-WORKS!(ONLY when also including bottom line)
HANDLE connection = InternetOpen(agent, test1, test2, test3, test4);
HINTERNET InternetOpen(agent, test1, test2, test3, test4);
// ^^^^^^ DOESNT WORK!! gives error, why? || if you remove this, the line above will error... wtf code changing itself?
// also above line is syntax- wise incorrect I believe
Error is at the bottom line:
"HINTERNET InternetOpen(agent, test1, test2, test3, test4);"
At "agent," it says error: expected a ')'.
What have I done wrong?
It sounds like some simple thing like a missing ) or ;, but I am sure I have done it all correctly.
 

Nether

The Angel Of Verdun
Meme Tier VIP
Dank Tier Donator
Dec 11, 2013
293
3,738
16
Try This Instead
C++:
LPCTSTR = "Mozilla Firefox: Arnold Schwarzenegger Edition";
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods