News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Need help with simple code

Started by ltheonel, October 01, 2011, 02:58:33 PM

Previous topic - Next topic

ltheonel

Hello,
nice board hope for more...

I set my compiler to work with Visual C++ 6 compiler,
when i try to run the following code, i get no errors and no output...

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>



int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{

   printf("HelloWorld");
   return 0;
}



When i try main(){ //do something } its working, maybe someone can help...

Jenna

Please respect our forum rules.
You agreed with them, when you registered here.

This is not a general programming forum/website, so your question is violating our forum rules.

Topic locked !!