Hi, I'm looking for a way to grab the operating system that the program in running on. eg. Microsoft Windows XP
I can display the info I want with
system("VER");
But I can't get it into a string so the program can't read it.
Can anyone help?
Thanks
This is a discussion on System Information in C++ within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm looking for a way to grab the operating system that the program in running on. eg. Microsoft Windows ...
Hi, I'm looking for a way to grab the operating system that the program in running on. eg. Microsoft Windows XP
I can display the info I want with
system("VER");
But I can't get it into a string so the program can't read it.
Can anyone help?
Thanks
Use GetSystemInfo (system information), GetVersion (for getting what Windows OS it is).
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^