Ok, I have searched and read the posts about running a windows program using borlands c++ (I use version 5.02). The post are a little beyond me... Here is my program:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance,
LPSTR lpcmdline, int ncmdshow)
{
MessageBox(NULL,"THERE CAN BE ONLY ONE!!",
"MY FIRST WINDOWS PROGRAM THAT WORKS!",
MB_OK | MB_ICONEXCLAMATION);
return(0);
}
Can someone in an easy to understand way explain how to fix the linker problem, because I keep getting "unresolved _main " in cox32 or something... I would LOVE it if you could explain in full how to fix this... (ps: I am new to C++ lang, but I am not a computer moron). Thanks.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance,
LPSTR lpcmdline, int ncmdshow)
{
MessageBox(NULL,"THERE CAN BE ONLY ONE!!",
"MY FIRST WINDOWS PROGRAM THAT WORKS!",
MB_OK | MB_ICONEXCLAMATION);
return(0);
}
Can someone in an easy to understand way explain how to fix the linker problem, because I keep getting "unresolved _main " in cox32 or something... I would LOVE it if you could explain in full how to fix this... (ps: I am new to C++ lang, but I am not a computer moron). Thanks.