Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to put everything in one exe file ?

2 views
Skip to first unread message

Febre Yuwono

unread,
Jan 3, 2008, 5:22:35 PM1/3/08
to
How to put everything in one exe file (bmp bpl lib dll etc) ?


Regards
Febre Yuwono


AndrewB

unread,
Feb 2, 2008, 8:05:10 AM2/2/08
to
For creating a self extracting setup file I use SSE Setup: www.ssesetup.com
It supports exe and zip (and of course uncompressed).

But I wonder if this is really what you want (it should be because this is
the deployment newsgroup):

Maybe you want to build your program without rtl's?
1) Project -> Options-> Packages -> Build with runtime packages: off
2) Project -> Options-> Linker -> Use dynamic RTL: off

Or you want to embed your bmp in your exe file as a resource instead of
distribution it along with your exe file? Two VERY basic approaches:
Simply add it in the IDE to your form:
1) add a TImage to your form
2) select the bitmap you want to use in the Picture property :)
Or using resources:
1) Tools -> Image Editor -> File -> New -> Resource File (create a new one,
don't edit the basic res with your project's name, it will/can cause serious
problems)
2) Resource -> New -> Bitmap. Now create/paste/edit your bitmap etc.
3) Resource -> Rename: Give your bitmap in the resource file a meaningful
name e.g. "test" :)
4) Save the new Resource file
5) Add new resource to your project: Project -> Add to Project -> Files of
Type: resource, and select your new resource file from the list.
6) This bitmap will now be embedded in your exe on Build
7) Whenever you want to use your bitmap in your code, load it from the exe
with: LoadCursor(HInstance, "test"). See Builder's Help for more info on
this.

HTH

AndrewB

"Febre Yuwono" <febre....@telkom.net> wrote in message
news:477c...@newsgroups.borland.com...

0 new messages