| View previous topic :: View next topic |
| Author |
Message |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Feb 13, 2008 9:26 pm Post subject: |
|
|
creating a GUI with C isn't that difficult. For more complicated designs you can graph out a design in delphi and there you go, you have your coords. You just have to thiink a tad bit harder.
_________________
|
|
| Back to top |
|
 |
Urumeshi Newbie cheater
Reputation: 0
Joined: 12 Feb 2008 Posts: 22
|
Posted: Wed Feb 13, 2008 9:33 pm Post subject: |
|
|
| hmm alright I got C++ and C#...can I get a tut for both of em? A link or anything? or should this be another new thread?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Feb 13, 2008 9:46 pm Post subject: |
|
|
| samuri25404 wrote: | | C# is a lot easier to learn, than C++--it may not have the predefined WINAPIs and whatnot, but it does have a much easier way of creating GUIs than that freaking user-defined HandleMessage loop. -.- |
I don't know why you think this is a downside, handling the messages is not hard at all. Learning how it works early on is going to be better than shitting your pants when you have to override WndProc in C#.
Creating a GUI in C isn't hard, you could always use dialogs, and even creating things yourself isn't hard. Just base the coords off a resource editor or something like that.
|
|
| Back to top |
|
 |
Urumeshi Newbie cheater
Reputation: 0
Joined: 12 Feb 2008 Posts: 22
|
Posted: Wed Feb 13, 2008 9:58 pm Post subject: |
|
|
| >.> Tuts anyone? =\ not gonna nag.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Feb 13, 2008 10:18 pm Post subject: |
|
|
who would have imagined that google is a search engine?
or that there is a sticky topic at the top of the forum.
|
|
| Back to top |
|
 |
Urumeshi Newbie cheater
Reputation: 0
Joined: 12 Feb 2008 Posts: 22
|
Posted: Wed Feb 13, 2008 10:19 pm Post subject: |
|
|
-.- you know I dont spend all day on here. I dont just sit here and read stuff...
god...this is hard to get...i cant even...freaking find were to write the codes o.o either im way to tired...or not trying. DARN YOU C++
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
XxOsirisxX Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Oct 2006 Posts: 1597
|
Posted: Wed Feb 13, 2008 10:53 pm Post subject: |
|
|
I gave him that link via PM.
But he wants a "Easier" one, well, since im a bit "ñazy" to stay filling my PM, i will tell you that cplusplus tutorial is DAMN EASY to understand, if you can't, then.. i don't know how could you understand.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Feb 13, 2008 11:13 pm Post subject: |
|
|
| XxOsirisxX wrote: | I gave him that link via PM.
But he wants a "Easier" one, well, since im a bit "ñazy" to stay filling my PM, i will tell you that cplusplus tutorial is DAMN EASY to understand, if you can't, then.. i don't know how could you understand. |
Agreed, that's about as easy as it gets.
READ what it says, it explains everything in detail, don't just glance at it and decide it's too hard.
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Wed Feb 13, 2008 11:50 pm Post subject: |
|
|
DO NOT MAKE THE SAME MISTAKE I DID AND START WITH C#
Its not a good language to start with.
The best one to start with would be either C or ASM. and from there, branch off into other C's (C++/C#), and if you learn asm, you can go into MASM and FASM. These are actually useful languages.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Thu Feb 14, 2008 1:16 am Post subject: |
|
|
WndProc = full control.
_________________
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Thu Feb 14, 2008 4:04 am Post subject: |
|
|
| samuri25404 wrote: | | C# is a lot easier to learn, than C++--it may not have the predefined WINAPIs and whatnot, but it does have a much easier way of creating GUIs than that freaking user-defined HandleMessage loop. -.- |
Having the message handler in C++ (DlgProc, WncProc, etc.) isn't really that hard to understand or use. Not to mention you don't have to define every single message, you simply define the ones you want to "override" from the default return.
Thats why the messages are typically seen with a switch(), as you can have a default: case to handle any unhandled messages, or just return false.
For example, handling the first event of a dialog, WM_INITDIALOG which is called when the dialog is initializing which is used for any preparation and such before the dialog should be showed. All other messages are handled by Windows with their default handlers.
| Code: | BOOL CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch( uMsg )
{
case WM_INITDIALOG:
ShowWindow( hWnd, SW_SHOW );
CallAnotherFunctionHere();
return TRUE;
default:
break; // Or Just Return FALSE
}
return FALSE;
} |
_________________
- Retired. |
|
| Back to top |
|
 |
Urumeshi Newbie cheater
Reputation: 0
Joined: 12 Feb 2008 Posts: 22
|
Posted: Thu Feb 14, 2008 9:49 am Post subject: |
|
|
i never said I want an esier one...im reading that one.well maybe i did but still, I just said I can't find were to write the code..it was like 11 at night..
found it, Reading that tut and doing it.
|
|
| Back to top |
|
 |
|