1. Dialog-based Application
2. SDI Application
3. MDI Application
Visual Studio 2010
Sunday, November 3, 2013
Saturday, October 26, 2013
Basic MFC Console Program
This is a basic MFC console program.
// TestMFCConsole.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "TestMFCConsole.h"#ifdef _DEBUG
#define new DEBUG_NEW
#endif// The one and only application objectCWinApp theApp;
using namespace std;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{ int nRetCode = 0;HMODULE hModule = ::GetModuleHandle(NULL);
if (hModule != NULL) { // initialize MFC and print and error on failure if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0)) { // TODO: change error code to suit your needs _tprintf(_T("Fatal Error: MFC initialization failed\n"));nRetCode = 1;
}
else { _tprintf(_T("This application is based on MFC\n"));}
}
else { // TODO: change error code to suit your needs _tprintf(_T("Fatal Error: GetModuleHandle failed\n"));nRetCode = 1;
}
return nRetCode;}
MFC Class Wizard in Visual C++ 2010
MFC Class Wizard let you add messages and message handlers to classes in your project. To open the MFC Class Wizard, on the Project menu, click Class Wizard. To open the wizard with a keyboard shortcut, type CTRL+SHIFT+X.
Saturday, October 12, 2013
Sunday, October 6, 2013
Visual Studio 2010 Samples
- Visual Studio 2010 Samples
- Samples on Disk : C:\Program Files (x86)\Microsoft Visual Studio 10.0\Samples\1033
- Office Visual Studio 2010 Samples for .net 4.0
- 101 LINQ Samples
Subscribe to:
Posts (Atom)