please help me with this
i run a borland c++ 5.02, when i try to run this piece of code

#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)

    MessageBox(NULL, "\tHello World!", "My first windows app", NULL);
    return 0;

i am getting an unresolved external __ main.. What does this mean and how do i make this code work???
Thanx for ur help

Borland is pretty old, I've never used it, so I can't give you specifics. But it looks like your project isn't configured correctly for a Windows API program. You'll have to look through your project's configuration to find the setting that tells the compiler the name of your program's entry point and change it to WinMain().

Since it's for Windows, you may want to consider upgrading to a Visual Studio product. Not only will it make it easier for you to create WinAPI programs, the code will be more up-to-date.