How to make a dialog box in the Visual C++ Programming language.
Step number 1: Download Visual C++ 2008 Express Edition from: http://www.microsoft.com/express/vc/, after setup, open it. Or if you already have it, proceed to step number 2.
Step number 2: After you have opened Visual C++, Click on: File > New > Project. Under the Win 32 section, select Win32 console application. Name it whatever you want to name it and press OK.
Step number 3: A box appears that says Win32 Application Wizard, in this box, select “Application Settings” on the upper left corner of the box and make sure that “Console Application” is selected and then click Finish.
Step number 4: After you have finished setting up the .CPP file, erase all of the text and copy the following into the box (exactly how it is, without the quotation marks):
// This is my program
//
#include “stdafx.h”
#include
using namespace std;
int main()
{
cout << “Text Here. n”;
return 0;
}
;
Step number 5: Replace This is my program and Text Here with anything you want the dialog box to say.
Step number 6: Save the project by pressing Ctrl-Shift-S.
Step number 6: Now after you have saved it, pres Ctrl-F5 to start your program without debugging.
It should look like this:













Leave Your Response