So, I've created a windows form application. This means that besides my form.h, I still have the project.cpp, which contains:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include "stdafx.h"
#include "Form1.h"
using namespace Calculator;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
|
I can't get this first console to display anything. As far as I understand, this code is ran before the form being started up, I inserted a
system("PAUSE")
and I got a console with PRESS ANY KEY TO CONTINUE, after pressing a key or closing that console, the form ran.
Now, I tried using basic commands such as cout, printf, but none is showing before the system("PAUSE"); (Of course, I included iostream, tried both cout<<"Something"<<endl; and std::cout<<"Something"<<endl;, printf("message");, etc, nothing is working)
Working in Visual C++ 2010 Express
Any help is appreciated
Thank you in advance!