Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Windows application

I have Borland C++ 5.5.1 compiler. Whenever I want to compile an application
with Bcc32 -W prog.cpp command I got error : "unresolved external 'WinMain' referenced from C:\Borland\Bcc55\Lib\Cow32.obj". The same application I can compile with Bcc32 prog.cpp command , receiving a DOS application. -W means that I should receive a Windows application which I cannot obtain.
Could somebody help me with this problem. Thank you in advance.
[453 byte] By [stece] at [2007-11-11 7:37:25]
# 1 Re: Windows application
Its not that simple. You must build a gui, add things to the program, not just filp a compile switch to make a gui application. Basically, window's programmers renamed
int main
to
int WinMain
for some unknown reason. Leave the -w off unless you are making a gui based app.
jonnin at 2007-11-11 21:02:01 >
# 2 Re: Windows application
I'd like to learn how to write gui based application in borland c++ and I don't know how to start. I've been looking for a book about it I've looked over 300 books on programming and found nothing. Please help me.
stece at 2007-11-11 21:03:07 >
# 3 Re: Windows application
5.5 came out before I learned to program. It is ancient. The first thing to do is get a new compiler, visual studio .net express or whatever its called is free and a much better place to start.
jonnin at 2007-11-11 21:04:06 >
# 4 Re: Windows application
Does Visual Studio.net work on windows 98 and where can I download it from?
stece at 2007-11-11 21:05:05 >
# 5 Re: Windows application
http://msdn.microsoft.com/vstudio/express/support/install/

Visual Studio Express can be installed on any of the following systems:

Microsoft Windows 2000 Professional SP4
Microsoft Windows 2000 Server SP4
Microsoft Windows 2000 Advanced Server SP4
Microsoft Windows 2000 Datacenter Server SP4
Microsoft Windows XP Professional x64 Edition (WOW)
Microsoft Windows XP Professional SP2
Microsoft Windows XP Home Edition SP2
Microsoft Windows XP Media Center Edition 2002 SP2
Microsoft Windows XP Media Center Edition 2004 SP2
Microsoft Windows XP Media Center Edition 2005
Microsoft Windows XP Tablet PC Edition SP2
Microsoft Windows Server 2003, Standard Edition SP1
Microsoft Windows Server 2003, Enterprise Edition SP1
Microsoft Windows Server 2003, Datacenter Edition SP1
Microsoft Windows Server 2003, Web Edition SP1
Microsoft Windows Server 2003, Standard x64 Edition SP1 (WOW)
Microsoft Windows Server 2003, Enterprise x64 Edition SP1 (WOW)
Microsoft Windows Server 2003, Datacenter x64 Edition SP1 (WOW)
Microsoft Windows Server 2003 R2, Standard Edition
Microsoft Windows Server 2003 R2, Standard x64 Edition (WOW)
Microsoft Windows Server 2003 R2, Enterprise Edition
Microsoft Windows Server 2003 R2, Enterprise x64 Edition (WOW)
Microsoft Windows Server 2003 R2, Datacenter Edition
Microsoft Windows Server 2003 R2, Datacenter x64 Edition (WOW)
Microsoft Windows Vista
Installation of Visual Studio 2005 on the Intel Itanium (IA64) is not supported.
rssmps at 2007-11-11 21:06:04 >
# 6 Re: Windows application
See if you can find a cheap copy of version 6.0 instead. It works on 98. Otherwise your on your own with borland 5.x -- and I think it uses a nearly dead technology called ole or something? The borland builder series does it completely differently if I am not mistaken.
jonnin at 2007-11-11 21:07:10 >