Welcome, Guest.
Please login or register.
Compact exe how?
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Programming  ›  Compact exe how?
Users Browsing Forum
No Members and 1 Guests

Compact exe how?  This thread currently has 3,240 views. Print Print Thread
1 Pages 1 Recommend Thread
teslaXB
March 15, 2012, 3:40pm Report to Moderator Report to Moderator

Baby Member
Posts: 22
Hi...
I understand that xblite program depend on xbl.dll but how then create only one compact executable?
I mean in first place is there a way to produce compact exe without any packers?
I know i can create some sort of binder but how will this work?
Any ideas?
Logged Offline
Private Message Private message
teslaXB
March 17, 2012, 1:32pm Report to Moderator Report to Moderator

Baby Member
Posts: 22
Hello...
Is anybody visit this place?
Logged Offline
Private Message Private message Reply: 1 - 3
XBLiteAdmin
March 30, 2012, 8:28am Report to Moderator Report to Moderator
Administrator Group
Posts: 44
If you import the static libraries, then you will get an xblite executable without
any external libraries required. When importing a static library, only the
required functions are included in the final executable. The static versions
are named *_s.lib.

So in the beginning of your program, IMPORT the static version of
the libraries as shown below

' external xblite dll's
' IMPORT "xst"                    ' Standard library : required by most programs
' IMPORT "xsx"                    ' Extended standard library
' IMPORT "xio"                    ' Console input/ouput library

' static xblite libraries
IMPORT "xst_s.lib"
IMPORT "xsx_s.lib"
IMPORT "xio_s.lib"

See the demo program benchmark.x found in the \demo\console\benchmark folder.
This program compiles into a single executable and does not require any external
DLLs.

Once you get the final executable, then you can use an exe compression program
like UPX to further shrink the file.

D.
Logged Offline
Site Site Private Message Private message Reply: 2 - 3
teslaXB
March 30, 2012, 4:46pm Report to Moderator Report to Moderator

Baby Member
Posts: 22
Aha,i see ...thank you..!
No ,there is no need for compression.
Logged Offline
Private Message Private message Reply: 3 - 3
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Programming  ›  Compact exe how?

Thread Rating
There is currently no rating for this thread