Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

System Spec Library for c++

Name: Anonymous 2011-12-20 17:03

I'm looking for a platform independent library in c++ to get system specs, getting the monitor's stats would be the most important thing though.
Thank you.

Name: Anonymous 2011-12-20 18:38

FIOC + Windows: http://stackoverflow.com/a/4476144
+ http://msdn.microsoft.com/en-us/library/windows/desktop/aa394572(v=vs.85).aspx
I'm sure you can get the general idea from that, for windows. Not sure about *nix, but it's probably a billion times simpler. And no clue for OSX either - may be the same.

I'd suggest just writing a simple little wrapper for the functionality for all the OSes you want to support, and then include the right code at compile time by OS. Shouldn't be too much work...

Name: Anonymous 2011-12-21 2:28

C++
IHBT :(

Name: Anonymous 2011-12-21 4:31

>>1
Oh hai can has impossiburu platform independent c++?
That's JVM's only redeeming feature.

Name: Anonymous 2011-12-21 11:38

>>4
Why wouldn't there be one? Well not really platform independent, I just need one that fits the major targets: Win,Mac,Linux. I'm sure there has to be one that's managed by some kind of review board like a lot of open api's are.

Name: Anonymous 2011-12-21 11:39

C++
IHBT :(

Name: Anonymous 2011-12-21 12:33

platform independent
getting the monitor's stats

Pick one.

Name: Anonymous 2011-12-21 16:42

>>5
systems are different, you prolly need a seperate lib for all of them, most likely the shit is in already some system header anyway

Name: Anonymous 2011-12-21 16:52

string getmonitorstats(){string stats;
    cout<<("what is you're monitors stats: ")
; cin>>(stats) ; return(stats) ;}

Name: Anonymous 2011-12-21 19:05

The ENQ (enquiry) control character is the standard way to request information about the type of terminal equipment in use.

Name: Anonymous 2011-12-21 19:31

>>9
If I ever ran a program with grammar like that I would kill it with fire then signal 11

Don't change these.
Name: Email:
Entire Thread Thread List