cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
c++ operation system detected ?
c++ operation system detected ?
Nov 15, 2013 at 11:19am UTC
R57x
(7)
hi guys;
c++ system detected code please :(
windows xp
windows 7
thanks
Nov 15, 2013 at 11:31am UTC
Notamongsheep
(28)
What is the question you're asking? I don't understand =)
Nov 15, 2013 at 11:39am UTC
R57x
(7)
my english is bad sorry :(
ı want to operating system detected is c++
My need is operating system detected source code or help
Last edited on
Nov 15, 2013 at 11:45am UTC
Nov 15, 2013 at 12:13pm UTC
Notamongsheep
(28)
You need a compiler program to compile your source code into an exe file. Something like visual basic. There are some free compilers out there, you just have to find them.
Nov 15, 2013 at 12:46pm UTC
Duthomhas
(13206)
He is asking how to identify the OS.
There are three parts to the answer.
(1) The build system should be able to figure out a lot of it. (Automake, etc)
Use this to chose which files to compile and link when compiling
(2) You can use predefined macros in your source code to chose which pieces of code to compile inside a file.
http://sourceforge.net/p/predef/wiki/OperatingSystems/
(3) You can use the OS's API to query the OS version itself.
http://www.google.com/search?btnI=1&q=msdn+GetVersionEx
Hope this helps.
Nov 15, 2013 at 1:46pm UTC
R57x
(7)
Thank You Duoas
Topic archived. No new replies allowed.