Article View: comp.os.ms-windows.programmer.misc
Article #2896Re: OK, I gots a little problem with my linker, here...
From: Norman Bullen
Date: Sun, 22 Nov 1998 00:00
Date: Sun, 22 Nov 1998 00:00
31 lines
1594 bytes
1594 bytes
Borland C++ is attempting to build a "console" application rather than a
Windows GUI application. Console applications must have an
int main(int, char**)
function while GUI applications must have an
int WINAPI WinMain( )
function as you have provided.
Assuming you are using the Borland IDE, you can change your application
to GUI by:
1) Open the Project window
2) Right click on the target (.EXE) line and select Target Expert
3) In the Target Expert dialog, change the Target Model to "GUI".
Next time you start a project make sure to select "GUI" as the Target
Model to start with.
Norm
Tom Burke wrote:
>
> I'm trying to teach myself windows programming, & I seem to be having
> some problems...
>
> Win95, 486DX100, 32M RAM...
>
> Borland C++5.02 (fresh install)
>
> This piece of code:
>
< code snipped >
Technical Details
Message-ID:
<36588980.FBB7E5A7@ix.netcom.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36586EBF.CC89AFA5@erols.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,229cc96a0cb0e3e7 X-Google-Attributes: gidf8d38,public X-Google-Thread: 105df1,229cc96a0cb0e3e7 X-Google-Attributes: gid105df1,public From: Norman Bullen <nbullen@ix.netcom.com> Subject: Re: OK, I gots a little problem with my linker, here... Date: 1998/11/22 Message-ID: <36588980.FBB7E5A7@ix.netcom.com> X-Deja-AN: 414595152 Content-Transfer-Encoding: 7bit References: <36586EBF.CC89AFA5@erols.com> To: Tom Burke <tomii@erols.com> Content-Type: text/plain; charset=us-ascii Organization: Black Cat Associates X-NETCOM-Date: Sun Nov 22 4:02:42 PM CST 1998 Mime-Version: 1.0 Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language