| View previous topic :: View next topic |
| Author |
Message |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jun 30, 2008 12:03 am Post subject: |
|
|
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 |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Mon Jun 30, 2008 12:32 am Post subject: |
|
|
Thanks Slovach
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
_________________
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jun 30, 2008 11:07 am Post subject: |
|
|
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 |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Mon Jun 30, 2008 11:41 am Post subject: |
|
|
| 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?
_________________
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Mon Jun 30, 2008 1:00 pm Post subject: |
|
|
| 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?  |
Win32 API.
Seriously, learn C++ before API's. You will understand them better when you come to learn later on.
|
|
| Back to top |
|
 |
avril18 Master Cheater
Reputation: 0
Joined: 11 Apr 2007 Posts: 380 Location: En san salvador, El Salvador
|
Posted: Mon Jun 30, 2008 2:48 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Mon Jun 30, 2008 8:48 pm Post subject: |
|
|
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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Mon Jun 30, 2008 10:58 pm Post subject: |
|
|
| AndrewMan wrote: |
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 |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Mon Jun 30, 2008 11:35 pm Post subject: |
|
|
I tend to use forms a lot more than console because I like eye candy .
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Tue Jul 01, 2008 2:02 am Post subject: |
|
|
| AndrewMan wrote: |
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 |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Jul 01, 2008 10:59 am Post subject: |
|
|
| Wiccaan wrote: | | AndrewMan wrote: |
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Tue Jul 01, 2008 4:56 pm Post subject: |
|
|
I started with Visual Studio 6, which contains VC6, I went into VS2005 then 2008 after that.
_________________
- Retired. |
|
| Back to top |
|
 |
|