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 / Useful external DLL?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 19th Jun 2016 13:35 Edited at: 29th Jun 2016 13:24
Hello everybody.

Just wondering if you guys knows of any useful external DLL that we can call from DBPro? And how to call them properly?

If there are any, would you guys share some of them here?

Thanks. Here are some that I came accross:

Screen width and height:


Get local IP address:


Get public IP:


Get local IP count:


Transparent Window



IntersectRect *** Warning *** lame demo alert!


"The Ultimate Windows DLL Include File"
https://forum.thegamecreators.com/thread/161497

Clip cursor to window client


Using non-registered fonts


Windows file open/save dialog
This one was contributed by Stab in the Dark Software to Green Gandalf's seamless texture maker.


Windows Choose Color Common Dialog - with stored custom colors. WickedX use it with BlueGUI to put it in a centered child window.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jun 2016 18:24 Edited at: 19th Jun 2016 18:34
The DarkBasic Professional version I use has the functions Desktop Width and Desktop Height which is what your first snippet does. There are hundreds of useful dll's with thousands of useful functions. What is useful depends on your needs. Here are a couple you may or may not find useful.

Transparent Window


IntersectRect *** Warning *** lame demo alert!
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jun 2016 18:58
Clip cursor to window client
Michael Mihalyfi
7
Years of Service
User Offline
Joined: 19th Jun 2016
Location:
Posted: 19th Jun 2016 20:58
Check out my old thread, I made my addons by checking this forum, and by interrigating the MSDN Function Database to exploit whatever I Could.

https://forum.thegamecreators.com/thread/161497

Here is the code from the thread which was labled "The Ultimate Windows DLL Include File"



These weremade in a time of XP, many many years ago, but I assume they should work on modern windows aswell as they inherited many of the same functions.
Origionally MSon on this forum
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 20th Jun 2016 12:32 Edited at: 20th Jun 2016 13:40
Oooh nice collections. Keep em coming. I'll pool them all at the top of the thread later.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 22nd Jun 2016 18:06
Using non-registered fonts font attached.

Attachments

Login to view attachments
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 28th Jun 2016 05:16
Windows file open/save dialog

This one was contributed by Stab in the Dark Software to Green Gandalf's seamless texture maker.

WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 28th Jun 2016 17:34 Edited at: 28th Jun 2016 17:43
Windows Choose Color Common Dialog - with stored custom colors. I use it with BlueGUI to put it in a centered child window.
Attila
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 8th Jul 2016 21:07 Edited at: 8th Jul 2016 21:09
Download something from the Web (a.e html-Source, Zip-File or more)



This will download the content of url$ to a localfile (wwwfile$)
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 9th Jul 2016 08:06
Quote: "This will download the content of url$ to a localfile (wwwfile$)"


Do we need to specify the specific file name in the website for wwwfile$ ?
Or we can just input any name for wwwfile$, and all the files will be downloaded automatically?
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 9th Jul 2016 17:06
It is a request for a specific url which will return whatever resource is at that address: file, page, etc

Login to post a reply

Server time is: 2024-03-28 09:30:58
Your offset time is: 2024-03-28 09:30:58