Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-24-2001, 05:17 PM   #1
Member (12 bit)
 
fatboyjim's Avatar
 
Join Date: Feb 2001
Location: UK
Posts: 2,469
Visual Programming

I am currently learning C++ from the Sams Learn C++ in 21 days book. Whilst the book is very good, and visual studio is also excellent for pointing out mistakes which are readable by myself, there is nothing graphical in the book (nothing which pops up a message box or anything)

Is this in VISUAL C++?? Or can I do things graphically in C++?

Thanks,

Jim

PS. How far do i need to have got in my C++ book to progress to Visual C++?
__________________
Jim
fatboyjim is offline   Reply With Quote
Old 08-24-2001, 06:22 PM   #2
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
Well, very few C++ books, unless you get a book for GUI programming, will cover it.

You have 2 options, to do windows programs (which I assume is what you want):

1) Program in WinAPI (not recommended)
2) Get either Visual C++ or Borland C++. (recommended)

VC++ and BC++ provide wrapper classes for windows and window controls. VC++ uses MFC, which people either love or hate. As BC++ can be purchased for less than $30, and VC++ is hundreds, I got Borland C++ 5.02, and I use its own wrapper classes, OWL.

These libraries give you the capability of creating objects instead of managing window pointers, so it's a good way to do things. Do note that sometimes these wrapper classes don't provide full functionality. One note is that the text control wrapper classes in OWL are ASCII strings only, so people who need 2-byte (unicode) character sets can't use OWL.

I can't help you if you use MFC (Visual C++) but in Borland C++, I can create a simple window by doing the following:

1) Derive a new class from class TApp. My derived class, which I always call DApp, has only one overloaded function, which sets up the main window.

2) OwlMain() -- which is called by WinMain, as OWL provides its own WinMain which handles some basic initialization stuff -- has only one line: Dapp.Run();

3) In my main window class (which I usually derive from TDialog as it's very simple to visually create dialogs), I create all other windows, and process messages, as needed.
__________________
Paul M. Victorey
------------------
I am not responsible for any problems that may arise as a result of following my advice. This includes, but is not limited to, computer failure, loss of data, nuclear war, famine, boils, no clean laundry, your daughter running off with a biker gang, or armageddon. Take my advice at your own risk.
Paul Victorey is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2