Thread: Os Detection
View Single Post
Old Nov 15th, 2004, 10:01 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Bingo. I also want to use function pointers or virtual functions (not sure which) to sort out which function should be used for each OS, effectively making it cross-compatible. Isn't there a #define I can test? I think there's one called _WIN32, but I have no idea about Linux. I know I can call system("ver > file") and then read the file - can I do that on Unix too?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote