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.

Newcomers DBPro Corner / Creating a program from a program

Author
Message
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 28th Apr 2003 16:14
i am thinking of making standalone slideshow maker. I knowm how to make a slide show in dbpro. But i want to make a program that makes the stand alone slideshow. The user can select the images. But i got stuck in one place, how do i make a program that will be capable of making a exe file with its own commands! Please help man!

**I heard T3DGM was made in db too by a person called Lee. It makes exe files. So i wanna make exe files like that too**
KamaKase
22
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 28th Apr 2003 22:04
..could you expand the acronym, so I can search for it on the net please?

As for the .exe.
Ermmm, If you know the format of a .exe file I'm sure it's possible. Or just have a general.exe file, and a seperate file where you save all the settings to, and have the general.exe file use these settings.

I know that's not what you want, but it's the only way I can think of.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 28th Apr 2003 22:53
The 3D Gamemaker.

It's made by DBS, [href]www.the3dgamemaker.co.uk[/href].

T3DGM was made in DB (by the creator of DB himself) - I think it uses some modified version of the db core exe to make the exe files, and not some clever code. ie. They include a cut down copy of db in T3DGM.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 28th Apr 2003 22:54
My idea about this would be to distribute two files, an info file with images packed in (maybe using memblocks?) and an exe that reads the info file and shows the slideshow.

Unless you write your own compiler making an EXE from db using just commands is impossible.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 29th Apr 2003 07:24
how do i store images using memblock???

I am da man! Beware of my LAZER EYES!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 29th Apr 2003 07:31
I have this demonstration on my site.

Its code that generates code to a file.

If DBP had a command line to compile u would be set.

This example also automatically remarks itself as well.

It would be exposed as code if u tried to use it in a demo in this capacity unless u could command line compile a hidden directory somewhere from the installing procedure perhaps but someone will always find it.


http://www.lunarpixel.com/media/db_code_snippets/indi_code_writes_code.zip

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 30th Apr 2003 22:22
Quote: "I have this demonstration on my site.

Its code that generates code to a file.

If DBP had a command line to compile u would be set.

This example also automatically remarks itself as well.

It would be exposed as code if u tried to use it in a demo in this capacity unless u could command line compile a hidden directory somewhere from the installing procedure perhaps but someone will always find it.


http://www.lunarpixel.com/media/db_code_snippets/indi_code_writes_code.zip"


That writes the code, the only problem will be legally distributing the compiler

I'll write an exmaple about stuffing stuff in memblocks, if I can find out (I'm sure there is a way).

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 30th Apr 2003 22:38
Here's the code to save images into one file using memblocks.



This code will make 3 images, then save them to c:/saved.dat. It will then load them back from the file an show them in turn.

For your presentation you will want to write the number of images first into your file, then write all the memblocks. When you come to loading them, read the number of images first then use a for loop to load them back again:



The reason why I write the NumImages var to the file as a string is that I'm not sure about all the other write commands, and I know that one works

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 1st May 2003 17:16
very very thanks yaar

I am da man! Beware of my LAZER EYES!

Login to post a reply

Server time is: 2024-11-24 12:46:37
Your offset time is: 2024-11-24 12:46:37