Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2009
    Posts
    4

    Does System.GetOSName() return "" when a SUF7 runs on a Win7 box

    According to SUF7 documentation...

    System.GetOSName () Returns: (string) A string containing the name of the OS the user is running on their system. If this action fails, a blank string "" is returned.

    You can use Application.GetLastError to determine whether this action failed, and why.

    If Application.GetLastError Returns: 1800 = "Could not get the OS Version information."


    Questions:

    In SUF7...Does System.GetOSName() return "" when a SUF7 runs on a Win7 box ?

    Does Application.GetLastError() return 1800 when System.GetOSName() returns "" ?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Windows 7 did not exist even as a beta when suf7 was out. So how could it?

    Your best be would be to use the windows api to get the version #'s and figure out if it's win7 based on that.


    Of ourse, the easist solution is to upgrade to suf8.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Quote Originally Posted by lclague View Post
    In SUF7...Does System.GetOSName() return "" when a SUF7 runs on a Win7 box ?
    Yes.

    Quote Originally Posted by lclague View Post
    Does Application.GetLastError() return 1800 when System.GetOSName() returns "" ?
    No.

    You can use System.GetOSVersionInfo() to retrieve the version, which is 6.1.7100 for the RC and 6.1.7600 for the current release of Windows 7.

    Ulrich
    Last edited by Ulrich; 12-07-2009 at 07:47 PM.

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    When I said "use the windows api" -- I (internally) implied using:

    System.GetOSVersionInfo().MajorVersion
    System.GetOSVersionInfo().MinorVersion
    and
    System.GetOSVersionInfo().ProductType

    with those 3, you should be able to tell a win7 system.

    I don't recall the values off the top of my head....

    -josh


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Dec 2009
    Posts
    4
    Thanks.

    I'll probably do the upgrade to SUF8...just needed a quick fix to resolve an app problem related to XP/Vista/7.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts