Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 7th, 2006, 6:13 AM   #1
joeiscool
Newbie
 
Join Date: Mar 2006
Posts: 6
Rep Power: 0 joeiscool is on a distinguished road
C++ and Visual C++

What is the difference between C++ and Visual C++? And how do you design a program with a gui?
joeiscool is offline   Reply With Quote
Old Mar 7th, 2006, 6:24 AM   #2
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
It would be a wise idea to read the "How to post a question" thread. It has a part about searching the forum in it

C++ is a programming language. You should read a tutorial, like the cplusplus.com tuturial.
Visual C++ is an IDE from Microsoft. You can download the lastest express version freely.

You can create programs with a GUI by using the Windows API (assuming you are on Windows), one generally uses some framework like MFC. On *nix you can use several toolkits, some which are cross-platform like QT.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Mar 7th, 2006, 6:34 AM   #3
joeiscool
Newbie
 
Join Date: Mar 2006
Posts: 6
Rep Power: 0 joeiscool is on a distinguished road
Thanks

I'll try to search the forums.
joeiscool is offline   Reply With Quote
Old Mar 8th, 2006, 2:32 AM   #4
CodeWeasel
Newbie
 
Join Date: Jul 2004
Location: Blacksburg, VA
Posts: 13
Rep Power: 0 CodeWeasel is on a distinguished road
I use the Win API and MSVC++'s resource editor to do my guis for my applications, coding it by hand with the MFC is too messy IMO.

The first screenie is of the editor. You can see a listbox is selected. You can use code like the following to output to it pretty easily:
void OutputStringToListBox( HWND hDlg, int listboxId, char* pstrString )
{
	SendMessage(GetDlgItem(hDlg,listboxId),LB_ADDSTRING,0,(LPARAM)pstrString);
}
//and then somewhere later in the program...
OutputStringToListBox( g_hwndDlg, IDC_OUTPUTLIST, "---------------CPU Information----------------" );
The second screenie is the final product. Not too unwieldy The actual program is here.
Attached Images
File Type: jpg resourceeditor.JPG (32.3 KB, 23 views)
File Type: jpg ecalc1.JPG (33.3 KB, 19 views)
CodeWeasel is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC