Re: VerQueryValue() problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Phillips (jjphillipsREMOVE_at_REMOVEhotmail.com)
Date: 05/11/04

  • Next message: Richard Otter: "Temp folder"
    Date: Tue, 11 May 2004 13:19:10 -0400
    
    

    You've neglected to give the most important piece of information - what
    happens when you call VerQueryValue()? Do you get an access violation?
    Does the return value indicate failure? What does GetLastError() return?
    Does the problem occur when retrieving particular values, or any values?

    -- 
    John Phillips
    MVP - Windows SDK
    "Hans Pesata" <dummy.user@dummy.com> wrote in message
    news:Ct7oc.69632$O9.27088@news.chello.at...
    > Hi!
    >
    > I created a VC++ 6.0 MFC application which loads a DLL via
    > AfxLoadLibraray().
    > afterwards I query the version information of the DLL and I am running
    into
    > the problem, that VerQueryValue() fails on some systems and runs OK on
    > others for the same DLL.
    > the DLL has the name "Tools.dll"
    > GetFileVersionInfoSize() and GetFileVersionInfo() are always working fine.
    > somehow I cant access the version resource on some machines running
    WINDOWS
    > 2000 SP4,
    > this is strange and I dont know what to do about it...
    >
    > any help with this would be greatly appreciated,
    > thanx in advance!
    >
    > best regards,
    > Hans Pesata
    >
    > ------------------------------------------------------
    >
    > My eMail-address has been changed due to spam.
    > eMail-replies can be sent to hpesata@chello.at
    >
    >
    

  • Next message: Richard Otter: "Temp folder"

    Relevant Pages

    • Re: Access Violation using CCriticalSection in DLL
      ... including the declarations of all variables involved ... precisely where does the access violation happen (it doesn't happen "in the DLL", ... When I Load a DLL (That I ... I pass the address of the log program by reference to the DLL. ...
      (microsoft.public.vc.mfc)
    • R e: Catching access violation exceptions
      ... >> exception handling support. ... >> option enables Microsoft's Structured Exception Handling in ... >> EH so that a catch will catch an access violation. ... least attempt to disable that DLL from being used the next time. ...
      (comp.lang.cpp)
    • Re: Sockets in a DLL, access violation
      ... I don't believe it is a multiple thread problem. ... Jon Harris wrote: ... me the access violation, AFX_MANAGE_STATE is being executed. ... Have you added this code to the beginning of all our DLL exported functions? ...
      (microsoft.public.vc.mfc)
    • Re: Sockets in a DLL, access violation
      ... I initially had a problem when I wasn't doing this with assertions ... me the access violation, AFX_MANAGE_STATE is being executed. ... Have you added this code to the beginning of all our DLL exported functions? ... how can I write my sockets code ...
      (microsoft.public.vc.mfc)
    • Re: How to get my own version?
      ... GetFileVersionInfo, and VerQueryValue. ... DLL from within that DLL itself. ... go the GetFileVersionInfoSize / GetFileVersionInfo / VerQueryValue ... pathname in order to get my own version information? ...
      (microsoft.public.vc.language)