GUI application run in console mode
//Purpose of the following code is to demonstrate a way that a GUI
program running console mode and output to console window.
BOOL CTestGuiConsoleApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a
shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically