F
flingor
Hello everyone!
When I start a "Win32 Project" with Microsoft's Visual C++ I can't
produce any output by using my "normal" C++ code that I would use in a
console application. First, I'm not sure if i place my code in the
right position, but I think I'm right as I don't get any error
messages and the comments by Visual C++ tell me the right place:
-----------------------------------------------------------------------------------
[...]
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
cout << "This is a test!";
[...]
}
[...]
-----------------------------------------------------------------------------------
When I compile this I just get an empty win32 window, and there's
nowhere written "This is a test!". I also included all necessary
header files, and didn't change nothing from the "main code" already
written by Visual C++, I just added "cout << "This is a test!" ".
Flingor
When I start a "Win32 Project" with Microsoft's Visual C++ I can't
produce any output by using my "normal" C++ code that I would use in a
console application. First, I'm not sure if i place my code in the
right position, but I think I'm right as I don't get any error
messages and the comments by Visual C++ tell me the right place:
-----------------------------------------------------------------------------------
[...]
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
cout << "This is a test!";
[...]
}
[...]
-----------------------------------------------------------------------------------
When I compile this I just get an empty win32 window, and there's
nowhere written "This is a test!". I also included all necessary
header files, and didn't change nothing from the "main code" already
written by Visual C++, I just added "cout << "This is a test!" ".
Flingor