|
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?
|