@Darius Dempsey what library you use for your game?
Moderator note: this thread was split from Random suites for black jack game..
@Darius Dempsey what library you use for your game?
Moderator note: this thread was split from Random suites for black jack game..
Last edited by laserlight; 04-04-2011 at 12:44 PM.
If you're on windows the best GUI library is the one built into windows itself. Everything else is just a wrapper and simply adds more code without providing much benefit... In fact some of the bad ones impose penaties both in performance and size.
Take a look at theForger's Win32 API Tutorial for a start on windows GUI programming... but be warned, it ain't like no C code you've ever seen before.
thanks,@CommonTater...I guess it works only on Windows.
would be a wise decision to go to GUI on c++?
Linux etc. have their own versions of "WinAPI" coding, you'll need to do that reasearch if you are not on a Windows system ... Google is your friend.
You can do WinAPI in C or C++ ... that's up to you.
I do WinAPI coding in C all the time... Remote Media (shameless plug )
I am on windows...
So to make an application with a graphical interface you have to do a different code for each system?
First off... Moderator... can you split this thread, it's turning into a hijack!
Well, windows GUI is very different than Linux GUI which is different than MAC GUI ... so yes each OS has it's own way of doing things.
There are widget libraries you can use for cross-platform development but you pay a price in all of size, speed and capability for doing it.
(also ... Please stop hitting "like" for everything. It is massively annoying to have to clear the notifications all the time)
Last edited by CommonTater; 04-04-2011 at 09:49 AM.
thanks again!(that was the last question)Well, windows GUI is very different than Linux GUI which is different than MAC GUI ... so yes each OS has it's own way of doing things.
There are widget libraries you can use for cross-platform development but you pay a price in all of size, speed and capability for doing it.
I gave only two "LIKE" and I thought it will help you(also ... Please stop hitting "like" for everything. It is massively annoying to have to clear the notifications all the time)
no worries....
Naaa... it makes no difference at all. It's a number that shows up in my profile but is otherwise totally meaningless. The problem is that each time we get a new "like" the little notifications area (where it says "private messages") shows a new item and I have to go and hunt it down to clear the notification.I gave only two "LIKE" and I thought it will help you
ok,but sorry for offtopic
1)I looked over your link codes in GUI and yes, they are very different from what I did
I must learn these functions?or just need to understand?
2)When should I switch from the command Line to GUI?Code:int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
That is the entry point for a windows graphic mode program. Same as int main(void) is the entry point for a console program.
Not quite shure what you're asking...2)When should I switch from the command Line to GUI?
1) If you mean inside a program... In the windows OS a program is either GUI or Console mode, you don't get to switch back and forth.
2) If you are asking about skill levels... you need to be pretty confident in general C programming before you start trying graphic mode stuff.
Your best bet is to get a good compiler --I generally recommend Pelles C because it comes with all the tools you need for GUI mode programming-- get fairly good with console mode first, then follow The Forger's tutorial step by step doing each of the examples as you go. Windos API incorporates ~30,000 function calls... you don't master it in an hour.
yes, I mean 2)
is good this IDE(codeblocks with mingw) ?anyway,I'll try more IDE/compiler
Did you click on the link I gave you to Pelles C? (hint: Bold faced red typeface...)
Code::Blocks has no (= zero) windows GUI aids included. If you use it you will have to find editors for dialogs, string tables, menus, accellerators, manifests, icons, bitmaps, etc. separately, as free standing components... and good luck finding a free standing Message Table editor at all.
Pelles C has all that (and more) built in, it's C-99 standard C, with some extra libraries... and yes, it's free.
If you want to go C++ save yourself alot of headache and just go to Products — Qt - A cross-platform application and UI framework and download Qt creator. You will have a designer with drag-and-drop for building your GUI and Qt is an excellent framework to do GUI programming in c++.