CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    How to find out the Version of my exe

    How is it possible to find out the Versionsnumber entered in the resource section (Of the running exe)?



  2. #2
    Join Date
    Jul 1999
    Location
    Moscow, Russia
    Posts
    667

    Re: How to find out the Version of my exe

    Use HRSRC FindResource( HMODULE hModule, // module handle

    LPCTSTR lpName, // pointer to resource name

    LPCTSTR lpType // pointer to resource type);

    and
    HGLOBAL LoadResource( HMODULE hModule, // resource-module handle

    HRSRC hResInfo // resource handle);

    Good luck,
    Oleg.


  3. #3
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    Re: How to find out the Version of my exe

    How to use this functions?

    I tried it with:

    =LoadResource(NULL,FindResource(NULL,"FileVersion",RT_VERSION));

    What type is the returnValue?

    How to get the value of the Version into a CString?


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