Jan 23, 2021, 05:54 AM

News:

Choose a design and let our professionals help you build a successful website   - ITAcumens


How to Create the application - VC++

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

previous topic - next topic
Go Down

sukishan

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
{
public:
  virtual BOOL InitInstance();
};

class CMainFrame : public CFrameWnd
{
public:
  CMainFrame();
};

CMainFrame::CMainFrame()
{
  Create(NULL, "MFC Fundamentals");
}

BOOL CExerciseApp::InitInstance()
{
  m_pMainWnd = new CMainFrame;
  m_pMainWnd->ShowWindow(SW_NORMAL);

  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.
Name:
Email:
Verification:
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 :: Kids Memories Writing :: Book Website @ 349 Rs monthly
Copyright 2005 - 2020 :: IT Acumens :: All Rights Reserved. :: Sitemap
ITAcumens Discussion Forum with 2 lakhs post running for 15 years - Powered by IT Acumens Dedicated Server