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 / How can I get CPU info from DBP?

Author
Message
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 11th Mar 2007 22:05
Does anyone know how i can get the following info?
- CPU make/model/speed
- Video RAM

I can already obtain:
- System RAM
- Graphics Card make.model

http://www.KumKie.com http://bulldog.servegame.com
Julius Caesar
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 11th Mar 2007 22:07 Edited at: 11th Mar 2007 22:16
ignore me

I came, I saw, I conquered. The die is cast. It is not these well-fed long haired men that I fear, but the pale and the hungry looking. Et tu, Brute?
-The Man Himself
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Mar 2007 23:13
The enhancements pack gets this info for you. Otherwise, you'd have to call the relevant Windows DLLs



Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 11th Mar 2007 23:22
Or extract them from the registry ... give this a go:



GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 12th Mar 2007 00:30
Thanx Ric that works a treat

http://www.KumKie.com http://bulldog.servegame.com
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 12th Mar 2007 15:29
Good ..... but be aware that not all OS's store all of those values - if they don't, the commands will return null values.

TinTin
17
Years of Service
User Offline
Joined: 16th May 2006
Location: BORG Drone Ship - Being Assimilated near Roda Beta (28)
Posted: 12th Mar 2007 20:32
@Batvink (it's not a dig... but) why are there so many people suggesting the use of plugin dll when people ask how to do something?

@Gatorhex I'd suggest Batvinks other idea and use the Windows dll instead. no only will you learn more about programming, You'll not need to use a plugin that may stop working with DBP on it's next upgrade.

Cyberspace was becoming overcrowded and slummy so I decided to move. These nice chaps gave me a lift.

Login to post a reply

Server time is: 2024-05-04 04:26:46
Your offset time is: 2024-05-04 04:26:46