Obtaining Version information from C# using VerQueryValue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghazark
    New Member
    • Apr 2010
    • 5

    Obtaining Version information from C# using VerQueryValue

    Hi,
    I am using VerQueryValue from a C# program described in the following link
    http://bytes.com/topic/c-sharp/answers/278731-how-declare-pointerto-array-bytes
    to obtain version information.
    My questions is if there is a known issue with using this method on an OS or locale where double byte characters are used, such as Korean or Chinese.
    On Win7 Korean OS, my app crashes on the call to VerQueryValue.
    Any idea why? I'd appreciate your help.
    Thanks,
    Karineh
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Code:
    public static string OperatingSys
    {
        get { return System.Environment.OSVersion.ToString(); }
    }

    Comment

    • ghazark
      New Member
      • Apr 2010
      • 5

      #3
      Thanks for the reply tlhintoq,
      Sorry for not being clear. My objective is to get the version of a dll file not the OS. Is there any other ways to do this in C# besides the VerQueryValue method?
      Thanks,
      Karineh

      Comment

      • ghazark
        New Member
        • Apr 2010
        • 5

        #4
        I found a post here in Bytes that addresses that exact question.

        If there any known issues with that, please let me know.
        Thanks.
        Karineh

        Comment

        Working...