Advertisement

WinMain & main in Borland C++

Started by October 27, 2001 01:31 AM
1 comment, last by moncsco 23 years ago
Pleeeeease help!!!!! i''m new to windows programming. i know how to program in turbo c++ in DOS. but when i open a sample program in borland c++ it gives me an error message: UNRESOLVED EXTERNAL ''_main'' blah blah blah. i know it needs a "main" function but windows programs needs WinMain. Can you please help? AHHHHHHH. it''s very annoying.
Hi pal!

Mmmmh What compiler are you using?
Supossing you are using MSVC or Borland builder, you need to create a project first, and then add the sample program file to that project to be compiled.

Most DOS program sources compile OK in console application projects. However, there may be a few issues like clrscr() that won''t have any effect on the console window.

Hope I''ve been helpful, let me know if you have any other problem.

See ya.



SKeTch
SKeTch
Advertisement
Yeeeeeah!!!! It worked!!!! Thanks for the big help.

This topic is closed to new replies.

Advertisement