Generally, my programming skills originate from Borland C++ and I'm trying Dev C++. This simple program that I got from a book does not work in Dev C++.

Code:
#include <stdio.h>

void main()
{
          printf("Testing...\n");
}
I understand what I need to do to get this working but under different functions (i.e using namespace std....) for the standard functions. I am wondering what compiler runs this program without syntax errors/other errors. (again I am new and know only so much at the moment.) Also, the simplest windows application...

Code:
#define WIN32_LEAN_AND_MEAN

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
    MessageBox(NULL, "\tHello, world!", "My first windows application", NULL);
    return 0;

}
Is presented with an unwanted standard dev c++ output window with the actual Window (working as intended) in front of the standard dev c++ output screen. For these types of programs, what compiler do you reccomend? What compiler should I use for OpenGL Programming?

EDITS: How do I remove the standard c++ output pane when running a windows.h program?