🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

WinMain & main in Borland C++

Started by
1 comment, last by moncsco 22 years, 8 months 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.
Advertisement
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
Yeeeeeah!!!! It worked!!!! Thanks for the big help.

This topic is closed to new replies.

Advertisement