Feb 26, 2021, 03:34 PM

News:

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



Post reply

The message has the following error or errors that must be corrected before continuing:
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:
Subject:
Message icon:
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

Topic Summary

Posted by sukishan
 - Jul 12, 2009, 10:48 PM
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.
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