View previous topic :: View next topic |
Author |
Message |
Dr.Disrespect Grandmaster Cheater Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu May 05, 2016 6:17 pm Post subject: Need help with my first short C++ program.... |
|
|
Please take a look at the two screenshots.
I want to make a trainer from C++, but I'm having problem with finding the window of the game. I have watched some tutorials and copied the code in the tutorial to Visual Studio. However, an error message kept showing up, which points to the FindWindow function. How to fix it? (I was using the calculator in windows OS for testing purpose.)
Thanks in advance.
Edit:
I uploaded the wrong picture of the error message. Now it's correct.
Description: |
This is the error message. |
|
Filesize: |
33.08 KB |
Viewed: |
5474 Time(s) |
|
Description: |
|
Filesize: |
28.73 KB |
Viewed: |
5478 Time(s) |
|
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu May 05, 2016 8:35 pm Post subject: |
|
|
That compiles just fine for me using cygwin g++. What compiler and options are you using? Are you sure everything is up to date?
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
Dr.Disrespect Grandmaster Cheater Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu May 05, 2016 9:11 pm Post subject: |
|
|
ParkourPenguin wrote: | That compiles just fine for me using cygwin g++. What compiler and options are you using? Are you sure everything is up to date? |
I'm really new to programming. I don't know where to check the compiler version in Visual Studio.
What kind of tool are you using? Can I use your tool to make a form application? If so, I will just use yours.
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu May 05, 2016 10:00 pm Post subject: |
|
|
I used notepad to write the c++ source file and cygwin g++ to compile it. I would not recommend writing source code in notepad as there are many free IDEs you could get. The only reason why I did was because it was the fastest thing I could use to test such a small amount of code.
You should take the time to learn about programming in general. Not just the syntax of a specific language, but other things such as how source code is translated to asm. Use google to help learn.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
|
Back to top |
|
|
Dr.Disrespect Grandmaster Cheater Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Fri May 06, 2016 12:31 am Post subject: |
|
|
@Penguin @ atom0s
Thank both of you.
|
|
Back to top |
|
|
|