CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    GetVersionString()

    Sorry - but this question needs someone who can read my mind! (or at least, someone who's good at guesswork... )

    Most MSVC resource files (".rc") contain a block of information with some common strings, such as ProductVersion. For some reason I've got it in the back of my mind that there's a simple function for returning the product version string (something like GetVersionString() or GetProductVersion() or something similar). But when I type those terms into MSDN, the only results which come up are for .NET. I don't seem to get any hits for conventional C / C++.

    And yet I'm sure I used something like this, as far back as MSVC 6. I'm probably getting mixed up with something else. Can anyone guess at what I might be thinking of
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

  3. #3
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: GetVersionString()

    Some great links there, Victor. Thanks! GetFileVersionInfo is probably the one I was thinking of.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured