View previous topic :: View next topic |
Author |
Message |
407 Master Cheater
Reputation: 0
Joined: 25 Oct 2007 Posts: 357
|
Posted: Wed Dec 15, 2010 5:04 am Post subject: [C]GUI function coding |
|
|
Hello.
As a wannabe program/game creator, software designer, or programmer in general, I decided to learn a programming language.. After looking online, I decided to start with C, and took a course at my school.
I learned a lot, but it was all console applications/text programs. What I'm curious about/interested in is creating graphical user interface programs, such as a web browser or a calculator, or something non-console based. I am currently using Microsoft's Visual Studio's 2010 compiler, which does have a GUI designer, but I don't understand how to code functions for a button or a textbox and etc. Most tutorials I could find online are spoon fed code, and I'm wondering if anyone could assist me in finding a tutorial that explains GUI coding in C, or something on this subject.
Thanks for reading.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 15, 2010 5:37 am Post subject: |
|
|
Win32 GUI stuff is pretty gross to be honest, certainly not for the faint of heart. If you really need to do some GUI stuff in C/C++, get it wrapped up in a nice interface quick.
This is pretty relevant still
http://www.winprog.org/tutorial/
edit:
also ResEdit is awesome
http://www.resedit.net/
|
|
Back to top |
|
 |
407 Master Cheater
Reputation: 0
Joined: 25 Oct 2007 Posts: 357
|
Posted: Wed Dec 15, 2010 6:02 am Post subject: |
|
|
slovach wrote: | Win32 GUI stuff is pretty gross to be honest | I agree, haha.
This looks like what I'm looking for, I'll check that out, thanks!
Also, side question.. someone on another forum suggested I use OpenGL.. Could you give me an opinion or comparison?
|
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Dec 15, 2010 7:42 am Post subject: |
|
|
OpenGL is much more...complicated...then directx. It takes like 1000 lines of code just for a window
_________________
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 15, 2010 4:49 pm Post subject: |
|
|
Two wrote: | slovach wrote: | Win32 GUI stuff is pretty gross to be honest | I agree, haha.
This looks like what I'm looking for, I'll check that out, thanks!
Also, side question.. someone on another forum suggested I use OpenGL.. Could you give me an opinion or comparison? |
Use it for what?
Neither of the graphics APIs are easy to jump into, especially now since all the fixed function stuff is depreciated and you're in charge of ~* everything *~ related to drawing.
HomerSexual wrote: | OpenGL is much more...complicated...then directx. It takes like 1000 lines of code just for a window |
Erm, it's not really that bad.
It's just a short little bit to set up the device contexts and stuff.
Last edited by hcavolsdsadgadsg on Wed Dec 15, 2010 4:52 pm; edited 1 time in total |
|
Back to top |
|
 |
|