Register - Login
Views: 99803887
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 07:28:57 AM
Jul - Computers and Technology - C++: Moving from the console to windowed. New poll - New thread - New reply
Next newer thread | Next older thread
Aerakin
Ye Olde Layout
Level: 98


Posts: 1630/2550
EXP: 9475911
For next: 178442

Since: 07-06-07

From: From the future

Since last post: 8.0 years
Last activity: 1.2 years

Posted on 10-30-09 06:39:03 PM Link | Quote
Actually, that might be the best title, but who cares.

So, the thing is: I've doing C++ for awhile now, but only really outputted in console.

Now, I'd like to move on to window programming (in Windows, unsurprisingly) and I'd like to have someone to point me in the direction of a good website to get me started (you can go ahead and suggest books too, if you feel they are really good, I just might not get them until I get there in school).

So yeah, I'd appreciate help here.
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 3646/14742
EXP: 121746096
For next: 1603722

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 10-30-09 08:14:49 PM Link | Quote


Google showed me this Hopefully it helps.

I'm at college for computer science, and Windows programming isn't even taught at the school, AFAIK

____________________
~Dark Witch Terra

TKB Super Mario Bros. - Complete
TKB Super Mario Bros. 3 - In progress; 20/113 maps
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 3596/12211
EXP: 99321288
For next: 552283

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 10-30-09 08:21:43 PM Link | Quote

Time/Date

&date&

Posts

&numposts&

Days Here

&numdays&

Level

&level&
Metal_Man88
Local Moderator
I'm nearly to Windowed stuff here.

It just requires a front-end of some sort, as Window programming can be a bit harrowing otherwise.

____________________
Original Layout © Tobias Kelmandia
Post 825/1311 (41 days), online 1 day ago
Posted on 10-30-09 08:29:05 PM Link | Quote
I made that move myself sometime last year, using the Windows API (it's either that or libraries), but only with simple stuff so far I forgot exactly where I looked, other than searching for sample code in Google and looking at Windows API functions ...

____________________


&rank&
#&postrank& 
OoBurns
?
Level: 60


Posts: 582/806
EXP: 1684174
For next: 88604

Since: 07-04-07

From: USA

Since last post: 10.4 years
Last activity: 9.8 years

Posted on 11-01-09 03:30:36 PM Link | Quote
Microsoft's Visual C++ might be what you're looking for. I haven't personally used the C++ version, but if it's anything like Visual C# (which I have used), it's dead simple to create a basic GUI and add your code to it.

The Express edition is free to anyone, and it's been more than adequate for the simple things I've been messing around with.

____________________
messiaen
Catgirl
Level: 68


Posts: 684/1085
EXP: 2596340
For next: 132460

Since: 11-20-07


Since last post: 8.1 years
Last activity: 7.2 years

Posted on 11-01-09 03:43:23 PM Link | Quote
When I was experimenting with some simple GUIs I used this WinApi tutorial as reference http://winprog.org/tutorial/. I also tried a bit of GTK, which was even more painful to learn .

Hint: read about the AllocConsole function. You can set very easily a console window which can be used for debug purposes.
Post 855/1311 (41 days), online 1 day ago
Posted on 11-01-09 07:28:25 PM Link | Quote
Originally posted by OoBurns
Microsoft's Visual C++ might be what you're looking for. I haven't personally used the C++ version, but if it's anything like Visual C# (which I have used), it's dead simple to create a basic GUI and add your code to it.
It's not as simple with C++ as it was for Visual Basic (and C#), although I remember Borland's "C++ Builder" a few years ago had something like that ...


The way it usually works with the Windows API is that you first create a window and then use its callback function (which receives events) to handle everything that happens with it, including the objects inside (but they can be their own windows with their own callbacks) ... at least it's possible to use dialog resources, so you don't have to create (and position) every single object from the code

I never tried GTK and others so I don't know they work, but they should be mostly useful for cross-platform

____________________



#50 
Rena
I had one (1) message in Discord deleted and proceeded to make a huge, huge mess about how it was a violation of free speech and how moderators are supposed to be spam janitors and nobody should have the right to tell me not to talk about school shootings
Level: 135


Posts: 2611/5390
EXP: 29075602
For next: 259403

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 342 days
Last activity: 342 days

Posted on 11-23-09 11:17:51 AM Link | Quote
Post #2611 - 11-23-09 06:17:51 AM
You can learn the Windows API, if you don't particularly value your sanity.

GTK is actually a fantastic API, but unfortunately does a lousy job of blending in in a Windows environment.

____________________
why not?
Next newer thread | Next older thread
Jul - Computers and Technology - C++: Moving from the console to windowed. New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 1 query cache hits.
Query execution time: 0.086126 seconds
Script execution time: 0.022670 seconds
Total render time: 0.108796 seconds