Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


First question with C++
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Jun 30, 2008 12:03 am    Post subject: Reply with quote

What's the purpose of makign a window compared to a form? So you understand how a window works. You know nothing of the innerstructure of win32. You should visit winprog. Don't go back to CLR. Il like to create an empty win32 app and add a new .cpp file (and anything else you may need later on)

You aren't good enough in C++ yet to just jump into CLR or Win32.

_________________
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon Jun 30, 2008 12:32 am    Post subject: Reply with quote

Thanks Slovach Very Happy

I just made a Message box btw!!

Code:
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
{
    MessageBox(NULL, "HELLO..world!!???", "Please work...", MB_OK);
    return 0;
}


@blankrider/slovach, so should I move slowly with Win32 or just do consoles for a little while? I really hate consoles, but if its gonna help (will it?), I guess I should do it. And Win32 is the language C? So its not C++?

Edit: Been reading a lot now, understand how a window works and WndProc(). Forgers is great Very Happy

_________________
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Jun 30, 2008 11:07 am    Post subject: Reply with quote

Just read forgers and you will learn. also i recommend finding Petzold's Windows Programming, 5 Edition. It's what i used to learn the windows API. The guys a fucking GENIUS.
_________________
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon Jun 30, 2008 11:41 am    Post subject: Reply with quote

blankrider wrote:
Just read forgers and you will learn. also i recommend finding Petzold's Windows Programming, 5 Edition. It's what i used to learn the windows API. The guys a fucking GENIUS.


WinAPI and Win32 are the same right? Rolling Eyes

_________________
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Jun 30, 2008 1:00 pm    Post subject: Reply with quote

AndrewMan wrote:
blankrider wrote:
Just read forgers and you will learn. also i recommend finding Petzold's Windows Programming, 5 Edition. It's what i used to learn the windows API. The guys a fucking GENIUS.


WinAPI and Win32 are the same right? Rolling Eyes


Win32 API.

Seriously, learn C++ before API's. You will understand them better when you come to learn later on.
Back to top
View user's profile Send private message MSN Messenger
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Mon Jun 30, 2008 2:48 pm    Post subject: Reply with quote

talking about .net (c++) i made a yesno message box
but i want to make that when the user press yes the application restart
and when no is pressed nothing happens

i know the code to restart the app but i want to know the loop to restart it if i press yes

_________________


Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Mon Jun 30, 2008 7:22 pm    Post subject: Reply with quote

A small tut for creating a dialog box I wrote, it shows how to make a demo trainer for Minesweeper via a dialog:
http://www.extalia.com/forums/viewtopic.php?f=60&t=2829

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon Jun 30, 2008 8:48 pm    Post subject: Reply with quote

Wiccaan wrote:
A small tut for creating a dialog box I wrote, it shows how to make a demo trainer for Minesweeper via a dialog:
http://www.extalia.com/forums/viewtopic.php?f=60&t=2829


Wow this is great!! It helped me A LOT.

So did you start off with C++ consoles than move onto Win32 API?

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Jun 30, 2008 10:58 pm    Post subject: Reply with quote

AndrewMan wrote:
Wiccaan wrote:
A small tut for creating a dialog box I wrote, it shows how to make a demo trainer for Minesweeper via a dialog:
http://www.extalia.com/forums/viewtopic.php?f=60&t=2829


Wow this is great!! It helped me A LOT.

So did you start off with C++ consoles than move onto Win32 API?


Personally, I use consoles for everything I make now since it is only the back end I care about, the console is just for input/output for testing.
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Mon Jun 30, 2008 11:35 pm    Post subject: Reply with quote

I tend to use forms a lot more than console because I like eye candy Very Happy.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Jul 01, 2008 2:02 am    Post subject: Reply with quote

AndrewMan wrote:
Wiccaan wrote:
A small tut for creating a dialog box I wrote, it shows how to make a demo trainer for Minesweeper via a dialog:
http://www.extalia.com/forums/viewtopic.php?f=60&t=2829


Wow this is great!! It helped me A LOT.

So did you start off with C++ consoles than move onto Win32 API?


I started learning C++ via DLLs and a plugin system due to the project I was part of at the time. I don't learn like others though, I can't sit and read a book front to cover and expect to know things. Instead I learn by trial and error and hands on. I'll read like anyone else, but I wont sit and only read. I'll try things out as I go.

I had a general understanding of C++ already from things I've done in the past though, so I didn't jump in knowing nothing at all about the language, or what it can do.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Tue Jul 01, 2008 10:59 am    Post subject: Reply with quote

Wiccaan wrote:
AndrewMan wrote:
Wiccaan wrote:
A small tut for creating a dialog box I wrote, it shows how to make a demo trainer for Minesweeper via a dialog:
http://www.extalia.com/forums/viewtopic.php?f=60&t=2829


Wow this is great!! It helped me A LOT.

So did you start off with C++ consoles than move onto Win32 API?


I started learning C++ via DLLs and a plugin system due to the project I was part of at the time. I don't learn like others though, I can't sit and read a book front to cover and expect to know things. Instead I learn by trial and error and hands on. I'll read like anyone else, but I wont sit and only read. I'll try things out as I go.

I had a general understanding of C++ already from things I've done in the past though, so I didn't jump in knowing nothing at all about the language, or what it can do.


I see. What compiler did you start off with? Visual C++ [date here] ?

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Jul 01, 2008 4:56 pm    Post subject: Reply with quote

I started with Visual Studio 6, which contains VC6, I went into VS2005 then 2008 after that.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites