CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Dll Version

  1. #1
    Join Date
    Jul 2001
    Location
    North of France
    Posts
    25

    Dll Version

    Hi,

    Just a simple question :

    I have developped a Dll in visual C++ 6 And I would to show the Dll Version in my About windows of my VB project.

    So, What I search is an API to get the Dll version.

    I tried to search in the french version of msdn without success.

    Thanks in advance,
    Laurent VOISIN.


  2. #2
    Join Date
    Sep 2001
    Posts
    512

    Re: Dll Version

    The following windows API calls would give you the version number of your DLL

    GetFileVersionInfoSize()
    GetFileVersionInfo()

    Hope this helps
    Hope this helps

  3. #3
    Join Date
    Jul 2001
    Location
    North of France
    Posts
    25

    Re: Dll Version

    Hi,

    Thank you for response, it work fine.

    I would like now to find the version of a Dll in memory.

    The system information viewer show me the version of certain Dll, So I would like to know how it is done ?

    Thank you in advance,
    Laurent.


  4. #4
    Join Date
    Sep 2001
    Posts
    512

    Re: Dll Version

    The only way I think you may be able to manage this is by getting the path to the dll from the list of dlls loaded by the process. However, I have no idea how easy this would be using VB. If you understand C++ then there is an article for finding which processes are locking a given DLL it should be possible to use this code to find which DLLs are loaded into memory and then get their path and filename to get the version.

    http://codeguru.earthweb.com/dll/WhoSLocking.html




    Hope this helps
    Hope this helps

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