![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 6
Rep Power: 0
![]() |
C++ and Visual C++
What is the difference between C++ and Visual C++? And how do you design a program with a gui?
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2006
Posts: 6
Rep Power: 0
![]() |
Thanks
I'll try to search the forums.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jul 2004
Location: Blacksburg, VA
Posts: 13
Rep Power: 0
![]() |
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 actual program is here. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|