Author Topic: Need help with simple code  (Read 3138 times)

ltheonel

  • Guest
Need help with simple code
« on: October 01, 2011, 02:58:33 pm »
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...
« Last Edit: October 01, 2011, 03:40:15 pm by ltheonel »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Need help with simple code
« Reply #1 on: October 01, 2011, 04:18:48 pm »
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 !!