oh.. sorry: here it is:
Code:
#include <iostream>
#include "stdafx.h"
//#include <practice.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// The one and only application object
CWinApp theApp;
using namespace std;
/*input stream handle */
HANDLE hIn = NULL;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;
// initialize MFC and print and error on failure
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
{
//::
ShowWindow(GetConsoleWindow(), SW_SHOW);
}
return nRetCode;
}
project must support MFC.