#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_HIDE);
}
return nRetCode;
}
gives the following error:
f:\ookbij3\days\day08\a.cpp(31) : error C2065: 'GetConsoleWindow' : undeclared identifier
in MSVC++6.0.
Does anyone knows why ?? (it's not because windows.h isn't included).
thanks.
#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

{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\n"

nRetCode = 1;
}
else
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
}
return nRetCode;
}
gives the following error:
f:\ookbij3\days\day08\a.cpp(31) : error C2065: 'GetConsoleWindow' : undeclared identifier
in MSVC++6.0.
Does anyone knows why ?? (it's not because windows.h isn't included).
thanks.