Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Mini Format - new converter (DBC 1.13 only)

Author
Message
deckard
21
Years of Service
User Offline
Joined: 11th Apr 2003
Location:
Posted: 14th Jan 2004 14:04
The biggest part of every DarkBasic program (about 1.5 MB) is
DarkBasic runtime interpreter. We can exclude this runtime code
from EXEs and place it somewhere else, for example in
\windows\system directory
Runtime code is a compiled EXE of "empty" program



Mini exe program works as follows
1 Find DBRT.EXE and copy it to temporary _temp.exe
2 Add interpreted code to _temp.exe to make "normal" DarkBasic exe
3 Run _temp.exe
4 Erase _temp.exe after exit

Famous 20-line programs converted to mini format have the size
of exe code only about 15-25 KB, not 1.5-2MB. So it's easy
to distribute mini exe programs via Internet.

I wrote a new version of dbaminiw file converter with very
intuitive interface. All you have to do is to drag EXE file.

Download utility dbaminiw.zip and more information from
http://www.atd-group.narod.ru/eng/coding.htm
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 15th Jan 2004 05:49 Edited at: 15th Jan 2004 05:51
Really neat feature, going to try it now!

Still downloading.. .very slow

Dual AMD Athlon MP 2x1GHZ | IBM 15000Rpm SCSI 73.4 Gb X 2 | e-GeForce Ti4400 | Audigy 2 + 7.1 Surround sound | 17' Monitor | Ugly mouse
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 3rd Feb 2004 03:31
No, he is saying that you can compress the file size of dark basic programs.

IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Feb 2004 14:38
Actually, he is saying that you can separate your DarkBASIC programs into 2 parts ...

1) The DarkBASIC runtime
2) Your executable code

This means that once someone has the runtime installed on their system somewhere, the only parts of your program that you need to ship is your executable code and the media, and this reduces the download size by 1.5MB

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 9th Feb 2004 23:22 Edited at: 9th Feb 2004 23:23
hey that's very cool! I'm downloading all right now! , that'll help me to make my F-16 demo more smaller! thx

::·· Intel Pentium II 300 Mhz, Sound Blaster AWE 32, 5 Gb HD, SiS 8 Mb video card, Windows 98 and 64 Mb RAM ··::

Login to post a reply

Server time is: 2024-04-27 23:40:58
Your offset time is: 2024-04-27 23:40:58