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 / Ion Extension Pack Functions - 28 DBp functions

Author
Message
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 05:07 Edited at: 10th Aug 2005 23:06
Here is the first public release of my Ion Extension functions.

This is ABSOLUTELY FREE - NO CREDIT NEEDED!!
Use these commands however you want.

I'm just trying to add in some very useful/common commands that DBp doesn't have.

They include:
- openBox/saveBox dialogs
- messageboxes
- reading and writing of INI files
- memblocks
- file commands
- extra string functions
- bezier curves
- BlueGUI extra commands

This is version 1.0.0.6
Number of Functions: 72

Documentation is included at the top of the code.
These functions should be put into a .dba file and attatched in your project.
If you want to just use these functions at the end of your code rather than attaching the whole source file, note that many functions call each other.

NOTE: Documentation is lacking for some commands. Will be updated soon.

The code is now attached to this post due to a size of 24.4 KBs.

Hope you like it! Comments and requests are welcome

-Xol

Attachments

Login to view attachments
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 20th Jul 2005 05:20
Wow this couldnt be more perfect timing !
how do you get the string that is returned by the openwindow gadget ?
Thanks a million man

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 05:23 Edited at: 20th Jul 2005 06:42
You're welcome, Baggers!

For the openBox command: I found it on the forums/codebase (Firefly) a while back and made a few changes. comdlg32.dll writes the filepath in memory at the pointer it is given. I fthat pointer is the beginning of a DBp memblock, DBp can read it as if it were a memblock.

Thanks!

-Xol

Ion Extension: 30 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 20th Jul 2005 05:25
So now for the retards ... how can I get the path ? (just a little example would be fine !)

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 05:29
Oh, sorry . The function returns it. Example:


-Xol

Ion Extension: 28 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 06:02 Edited at: 20th Jul 2005 06:05
Edited first post to add bezier curves. Now 30 functions

-Xol

Ion Extension: 30 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 20th Jul 2005 06:35
Sweet thanks man, didnt anticipate it being that simple !

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 06:43
You're welcome again
Glad you like it!

-Xol

Ion Extension: 30 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Jul 2005 07:17
Looks useful. You have a small bug in enable_ion_system function though by hard coding dll numbers as 254 and 255


Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 20th Jul 2005 07:43 Edited at: 20th Jul 2005 07:46
Spooky,
Oops, that was from testing it. Thanks. My get_free_dll() function used to be having problems, but I fixed those long before I posted this.
Updated post 1 to fix that.

-Xol

Ion Extension: 30 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
G Man
20
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 20th Jul 2005 14:50
What a very nice piece of coding work! There's certainly somethings in there that I was going to need to hack out! You've saved me a batch of work!

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 26th Jul 2005 22:34
Sorry if this sounds dum but Where do I get the dlls to use with your library.

fubar
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 01:06 Edited at: 27th Jul 2005 01:14
Thanks G Man
Fubarpk, the DLLs used by this code are all windows DLLs. They already exist in the right place on every windows computer, or else nothing on thier computer would work. Therefore, you don't need to download anything except for this code (it's nice to see someone actually spent the time to look through this code!)

I've updated the first post with the attached .dba file. It is now version 1.0.0.3 and has 16 new functions along with bug fixes for 'inString(' and 'inChar('.

Comments and function requests are appreciated

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 03:25
Use can add the string search functions to it, if you want Xolo. But the orginal credit for them goes to IanM. I only did small modification and comments.

P.S. Their in the CodeBase

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 03:31
What does this do:

That this doesn't:

Will it work around the string length problems?

Or only the unending string one?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 03:34 Edited at: 27th Jul 2005 03:42
Keaz, I just put that in thier for a reverse of 'make_string_from_file('. I'll see about working around string length problems and then update it (right now it is the same as 'write string')

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 03:39
Ok thx anyway but I think I've worked out the issue.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 03:42
Updated 1.0.0.4 - Keaz, changed 'make_file_from_string(' to work without causing the length error. 'write_unending_string(' is still faster, but takes up more EXE size.

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 29th Jul 2005 22:47
Where'd the code go?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 29th Jul 2005 23:58
Weird - I didn't delete it, really! I might have edited the post without uploading a new one, but that shouldn't have caused this because the page was still there. Anyways, I'm going to fix a few bugs, add some commands, and upload a new version . Should be up in under an hour.

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 30th Jul 2005 00:25
OK, Update 1.0.0.5
Some commands are bugged - mostly because of DBpro issues. Bugged commands are marked with '| CURRENTLY BUGGED' after thier documentation line.

I've added some commands that are useful for BlueGUI richEdit gadgets, but compiling without BlueGUI shouldn't give an error, even if those functions are included.

Any feature requests are accepted.

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 30th Jul 2005 01:42
Keaz, I just realized why the source code disappeared - the server change. I've noticed attachments dissappearing all over the place!

-Xol

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 2nd Aug 2005 00:10
I regret to inform you but my source won't be compatible with your functions so.... is it ok if I convert them to my style?

P.S. I'm still working on the API wrapper part of my code, but I posted a working rebar project and my API are in code snippets. If you want to try and use them. The you might be able to get what you need from it.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 00:28
That's fine Keaz, I'll change mine to fit your style when I get a chance.

Good work on the rebar!

-Xol

Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 2nd Aug 2005 20:58
What's this about?

life's a game and a games a life More games at www.freewebs.com/halorc
The Ace of Spades
19
Years of Service
User Offline
Joined: 17th May 2005
Location:
Posted: 8th Aug 2005 16:46
HELLO!

This looks great but when I tried to compile it it said that
this function at line 142.....
start_ion_system

#100011: Can not understand command at line ...

Stephen Halloran
The Ace of Spades
19
Years of Service
User Offline
Joined: 17th May 2005
Location:
Posted: 8th Aug 2005 16:47
AND when I deleted the function above...

array insert at bottom ion_list()

also gave me an error...
What am I doing wrong?

Stephen Halloran
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 8th Aug 2005 17:02
Ace of Spades, sorry about this, but because of issuse declaring globals and arrays in functions, you have to call 'gosub start_ion_system'

Hope that helps,

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 10th Aug 2005 23:04 Edited at: 10th Aug 2005 23:07
Update 1.0.0.6

Fixed all known bugs. everything should work well now.

See the top post.

[EDIT: updated the top post because I forgot to add one command - it's in now.]

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 11th Aug 2005 02:42
Hmmm... 587 views but only 7 repliers other than me! Are these all DBC users coming from the newsletter... I thought that putting this in 'DarkBASIC Pro discussion' would be enough to show it is for DBpro and not DBC. Oh well.

If you are interested, please reply

-Xol

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Aug 2005 19:49
Hi Xolatron, very nice when I get to finding the bits I am looking for.

I am using XPpro and it does not like this line in your code.
say something about cannot find setrichhandle??

oldbkg = call dll(user32num,"SendMessageA",windowHandle(richEditHandle),0x443,0,convertToSystemColor(colorval))

I'm not getting you down am I, Ho Look! another fancy Door?
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 11th Aug 2005 20:05
Hmmm... Two possible causes (that I can think of):
1. You don't have BlueGUI, so windowHandle( will cause an error
2. your program hasn't called 'gosub start_ion_system' before calling the function setRichEditBkg(

If you don't have BlueGUI you should probably delete the whole BlueGUI section from the code (from setRichEditBkg to setPassword), or you could just take out the 'windowHandle(' and ')' from all of the BlueGUI functions if you want to use them with the windows API.

If the problem is number 2, then you need to call 'gosub start_ion_system' as the start of your code so the necessary Windows dlls (you don't need to download these) are loaded.

Hope this fixes the problem.

-Xol

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Aug 2005 20:10
Cheers Xolatron its to do with the BlueGUI bit, however mines I hope is in the post, so that part should then start to work .

I'm not getting you down am I, Ho Look! another fancy Door?

Login to post a reply

Server time is: 2024-11-24 06:19:16
Your offset time is: 2024-11-24 06:19:16