Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

installation of BCB 5 on Windows 2000

Status
Not open for further replies.

anto2

Programmer
Apr 4, 2001
29
IE
Hello,

I have installed BCB 5 on Windows 2000 and I'm having problems creating a new project.

If I save the project using the defaults of unit1 and project1 the program will run but if I use any other name I get
[Linker Error] Unresolved external 'WinMain' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\LIB\C0W32.OBJ

any ideas
 
it means you have created a windows application and you should implement the function WinMain like this:
Code:
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{

.....
  return 0;
}

Ion Filipski
1c.bmp
 
Hello,

I found my problem. I was giveing the project and the unit1.cpp file the same name. If I give different names no problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top