Thread: Operating System Detection APIs.

  1. #16
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Qt can do it, I believe, (class QSysInfo) but I'm not sure how. Maybe see if you can find the implementation source code for that class (and, specifically, the implementation for const WinVersion QSysInfo::WindowsVersion())

  2. #17
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Hodor View Post
    Qt can do it, I believe, (class QSysInfo) but I'm not sure how. Maybe see if you can find the implementation source code for that class (and, specifically, the implementation for const WinVersion QSysInfo::WindowsVersion())
    Call me crazy, but I don't think QT supports Win95 :}

  3. #18
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Quote Originally Posted by Yarin View Post
    Call me crazy, but I don't think QT supports Win95 :}
    And yet it has enumerations for Windows 95... QSysInfo Class | Qt Core 5.5

  4. #19
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Hodor View Post
    And yet it has enumerations for Windows 95... QSysInfo Class | Qt Core 5.5
    Indeed, and for 3.1, which makes sense considering Qt is older than Win 95. Yet, I'd be shocked if someone could get Qt5 to compile even on Win 98.

  5. #20
    Registered User
    Join Date
    Jul 2015
    Posts
    64
    Thanks for the pointer Hodor; I shall have a look into QSysInfo.

    Quote Originally Posted by Yarin View Post
    ... I'd be shocked if someone could get Qt5 to compile even on Win 98.
    Would it not be possible to use preprocessor directives to selectively compile it where appropriate? I haven't actually looked into the class yet, so I don't really know what I'm talking about, but I will do my research tomorrow.

  6. #21
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Abyssion View Post
    Would it not be possible to use preprocessor directives to selectively compile it where appropriate? I haven't actually looked into the class yet, so I don't really know what I'm talking about, but I will do my research tomorrow.
    Yeah you could preprocess half of the functionality out, it might work then. But anything nontrivial is going to rely on an NT+ API.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Operating System
    By Houssen in forum C Programming
    Replies: 18
    Last Post: 04-22-2008, 12:51 PM
  2. Any good windows system APIs?
    By taelmx in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2006, 12:43 AM
  3. What is your operating system?
    By undisputed007 in forum A Brief History of Cprogramming.com
    Replies: 41
    Last Post: 04-17-2004, 02:56 PM
  4. Operating system
    By sopranosomega in forum C Programming
    Replies: 6
    Last Post: 10-07-2002, 06:12 AM
  5. Operating System
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 115
    Last Post: 03-31-2002, 06:34 AM

Tags for this Thread