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.

DarkBASIC Professional Discussion / where can I download a standard load/save file .dll

Author
Message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Apr 2003 11:53
would be very useful...
TeJero
23
Years of Service
User Offline
Joined: 21st Feb 2003
Location: Unknown planet south of Earth
Posted: 19th Apr 2003 12:03 Edited at: 19th Apr 2003 12:04
There's an open/save dialog window routine in MrTAToad's GetResource plug-in.

Good news everyone! I really am THAT good...
http://www.google.com for great searches - oh my, yes!
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Apr 2003 12:09
Yes, quite true. Also got on for colours, the printer dialog box and fonts too...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Steverino
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United States
Posted: 19th Apr 2003 18:33
Nice load/save requester here:
http://www.darkbasicpro.com/apollo/view.php?t=4727&b=6

____________________________________________
Surrealist writing toy -- http://www.iconpoet.com
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 19th Apr 2003 19:31 Edited at: 19th Apr 2003 19:32
www.realgametools.net/forums/attachments/dbcommdlg.zip

There is a DLL is that zip file that will allow you to have an open / save box - this is the code needed:



Make sure you've loaded the dll using Load dll "dbcommdlg.dll",1.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 19th Apr 2003 19:33
ext$ is in the format: "Text files (*.txt)|*.txt|All Files (*.*)|*.*"

name|*.ext|name|*.ext

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
rapscaLLion
23
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 19th Apr 2003 23:51
I've had mixed results with Guy's dll... half the time I get boxes that are the right size horizontally, but larger than the screen vertically, and with wacked-up titles I'll try MrTAToads

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 20th Apr 2003 19:09
you don't really need a DLL to load and save things. Just save something using DBPro Commands.

e.g.

circle 5,5,5
get image 1,0,0,10,10
cls

center text 320,200,"Press 1 to play"
center text 320,300,"Press 2 to load a saved game"
center text 320,400,"press 3 to exit"

do

if keystate(2)
cls
exit
endif

if keystate(3)
cls
input "Filename: ";filename$
open to write 1,filename$+".sav"
read float 1,x
read float 1,y
close file 1
endif

if keystate(4) then end

loop

sprite 1,x,y,1
set sprite 1,0,1

do

sync on

cls

sprite 1,x,y,1

if upkey()=1 then y=y-10
if downkey()=1 then y=y+10
if leftkey()=1 then x=x-10
if rightkey()=1 then x=x+10
if returnkey()=1
input "Filename: ";filename$
open to write 1,filename$+".sav"
write float 1,x
write float 1,y
close file 1
endif

sync

loop

not sure if this works, haven't tried it.

Hope it helps.

TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 20th Apr 2003 20:55
The dll is not for saving, but for Graphical User Interface (GUI).
It's easier for the user to select the location of where to save a file if he/she gets a "Save File As.." dialog...

Login to post a reply

Server time is: 2026-07-11 12:01:06
Your offset time is: 2026-07-11 12:01:06