Win32ConApp - if!AfxWinInit:GetModuleHandle(NULL...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // Win23ConsApp.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "Win23ConsApp.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // The one and only application object CWinApp theApp using namespace std int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { int nRetCode = 0 // initialize MFC and print and error on failure
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) { // TODO: change error code to suit your needs _tprintf(_T("Fatal Error: MFC initialization failed\n")) nRetCode = 1 } else { // TODO: code your application's behavior here. } std::cout << "Htllo From the standard consol" << endl s return nRetCode }...
View Full Document

This note was uploaded on 03/19/2008 for the course CSE 122 taught by Professor Yoxheimer,ericch during the Fall '07 term at Penn State.

Ask a homework question - tutors are online