Article View: borland.public.cppbuilder.nativeapi
Article #9219Re: smaller exe
From: Evariste HORNECKER
Date: Mon, 26 Jul 2004 08:48
Date: Mon, 26 Jul 2004 08:48
30 lines
1792 bytes
1792 bytes
First : disable c++ exception and link with noeh32.lib If size is really a matter, you can create .EXE as small as 4k with Tinycrt from Matt Pietrek See article at : http://www.microsoft.com/msj/archive/S569.aspx and download the associated code : http://download.microsoft.com/download/0/6/7/0678184e-905e-4783-9511-d4dca1f492b4/MSJOCT96.EXE (in the Under the Hood directory) You have to link manually with ilink32 and use the crt0twin.obj as startup code. Some functions are replaced to "lite" ones such as sprintf wrapped to wsprintf, and new/delete wrapped to HeapAlloc/HeapFree which are slower. Hope it helps "FrankW" <nospam@nospam.com> a οΏ½crit dans le message de news:41047a51$1@newsgroups.borland.com... > Hi, > > I need to create a program that does only following: > > FindWindow then SendMessage > > Is there any tips on how to create a small .exe in BCB? > > Thanks, > > Frank > >
Technical Details
Message-ID:
<4104c567@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41047a51$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2ad96955d442d286 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Evariste HORNECKER" <evariste.horneckerSTOPTHESPAM@neosys.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <41047a51$1@newsgroups.borland.com> Subject: Re: smaller exe Date: Mon, 26 Jul 2004 10:48:37 +0200 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 81.248.24.189 Message-ID: <4104c567@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090831719 81.248.24.189 (26 Jul 2004 01:48:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail