Aug 17, 2022, 06:33 PM

News: :: Capture your kids magical moment and create your Online Private Diary for your kids

How to Create the application - VC++

Started by sukishan, Jul 12, 2009, 10:48 PM

previous topic - next topic
Go Down


This application was created as follows:

1. Start Microsoft Visual C++ or Visual Studio.
2. On the main menu, click either File -> New... or File -> New Project...
3. In the New dialog box, click Projects or, in the New Project dialog box, click Visual C++ Projects.
4. Click either Win32 Application or Win32 Project.
5. Type a name for the application in the Name edit box. An example would be MFCFundamentals1.
Click OK.
6. Specify that you want to create a Windows Application as an Empty Project and click Finish.
7. To use MFC in MSVC 6, click Project -> Settings... In MSVC 7, in the Solutions Explorer property page, right-click the project name (MFCFundamentals1) and click Properties.
8. In the Microsoft Foundation Classes combo box or in the Use of MFC combo box, select Use MFC In A Shared DLL.
Click OK.

To add a file to create the application, on the main menu of MSVC 6, click File -> New... or, for MSVC 7, on the main menu,

click Project -> Add New Item...

Click C++ (Source) File and, in the Name edit box, type a name for the file. An example would be Exercise.

Click OK or Open.

In the empty file, type the above code:

#include <AFXWIN.H>
class CExerciseApp : public CWinApp
  virtual BOOL InitInstance();

class CMainFrame : public CFrameWnd

  Create(NULL, "MFC Fundamentals");

BOOL CExerciseApp::InitInstance()
  m_pMainWnd = new CMainFrame;

  return TRUE;

CExerciseApp theApp;Execute the application.
Close it and return to MSVC.
A good beginning makes a good ending

Go Up

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Please leave this box empty:

Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

shortcuts: alt+s submit/post or alt+p preview
IT Acumens Web Designing Chennai | GinGly :: Build your Personal Website | CineBuzz :: Cinema News | My Kids Diary :: Gift your Kids Memories :: Book Website @ 349 Rs monthly
Copyright 2005 - 2021 :: IT Acumens :: All Rights Reserved. :: XML Sitemap
ITAcumens Discussion Forum with 2 lakhs post running for 15 years - Powered by IT Acumens Pro Dedicated Server

My Kids Diary