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 / A simple question for Dll ppl ;)

Author
Message
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 20:41
Is it possible with either an external dll or accessing an existing dll with DBCode to establish what version of DirectX is installed on a user's PC, so you could type something like

If directxversion
Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 20:56
Hmm ok weird... Sorry that post didn't work, I'll continue it here:

Something like



Anyone wanna try this? I'm sure I'm not the only person to find this useful.

OR will a dbp app simply not start unless you have direct x 8 or higher? If so will it bring up a sensible error message?

Thanks guys

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th Feb 2003 20:59
I'm sure I can do something...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 22:59
Thanks Toad, any input appreciated as always

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Feb 2003 00:58
you know i was gonna add that support into my Windows Version DLL - but you never asked for it so i decided not to bother

would've taken me the better part of 5mins for the exact same thing as you have for the Windows checker
or now i have got my values working could do it that way too.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Feb 2003 01:03
I don't believe that you'll be able to get this to work. DBPro programs won't even load without DX8 installed.

MrTAToad: Maybe some sort of program to run initially, that starts the DBPro prog?
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 10th Feb 2003 01:10
Raven lol Sorry I only just thought of it - 'Durrrr

IanM Yes I wondered about that - A simple renamable exe that ran a generic exe like startup.exe or something would b fine. Obviously doing it with a DBP app would be better, but like you pointed out, it might not work - and I'm pretty sure the errors that come up if you don't have DX aren't exactly user friendly

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Feb 2003 01:13
I think DBPro progs just tell you that they can't load DBProSetupDebug.dll
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 10th Feb 2003 03:10
Thanks IanM - Hmm if thats right thats annoying, cos it hardly shouts out "INSTALL DIRECT X" does it?

Toad just sent my a dll, Many thanks man I'll check it out 2moro Am even if what IanM is right about this I'll still use it to detect if they have the latest version etc

On a similar note, does any1 know the legal issues with including DX9 runtime on a CD-ROM with your finished game? Is it free to do or do you have to get permission from Microsoft first? Almost all games or Demo CDs include it...

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 10th Feb 2003 09:10
Try this: (no Extra DLL needed with DBPro and DB Enhanced)



TheCyborg
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 10th Feb 2003 10:57
I don't think that prog would start either.

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 10th Feb 2003 11:13
The code does work, but as said previously, its already been done...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Feb 2003 12:29
i think i understand what KG wants ... i could make a script for you mate for InstallSheild - or splash screen which gives the user several options, would be much better than making something to run in Pro because if you can't use Dx as stated any of the DirectX's won't run

And that isn't the most important factor either, because you also have processor speed, memory, operating system, etc... i can't believe i didn't think of what you were trying to do sooner
i'll definatly get on with something in C++ right after i finish the beta of my game - if i can ever get the CD back off my brother, he's obsessed with saving the chickens - its been cracking me up all morning (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
TheCyborg
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 10th Feb 2003 14:25
@MrTAToad

Yes the code will run. But will it run on a computer with directx 7? I don't think so...

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 10th Feb 2003 14:29
Your example wont because its tied to the DBPro compiler which needs DX8

However, with my plug-in - being able to be called from C/Pascal/DBPro or whatever, you can get a small secondary program to run first to check the DX version from 1 to 9...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
TheCyborg
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 10th Feb 2003 15:35
OR as raven said. Let the installer make sure you have a recent version of DX

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 10th Feb 2003 23:56
Thanx every1 for your input - Raven yeah that would be great A startup program to check your basic system setup and spec and give advice on whether the program will run. I have many of the factors already in my DBProgram, but yeah it would be so useful

The reason I thought of this first is because I'm actually planning on releasing comercial software made with DBPro very immenently, so I have to think about that kinda stuff, otherwise I'll get infinite annoying tech queries from people who don't know pcs

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me

Login to post a reply

Server time is: 2025-05-19 02:38:16
Your offset time is: 2025-05-19 02:38:16