Skip to Content
author's profile photo Former Member
Former Member

how to determine the version of powerbuilder which built an executable?

Hello,

Does anyone know how to determine which version of PowerBuilder was used to build an executable?

Thank you,

Doug

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 04:56 PM

    There might be a better way, but... I opened one of our exe's in notepad and quickly found a reference to the PBVM (e.g. PBVM126.dll). Try opening the exe in notepad and do a search for PBVM. Hopefully that helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 05:03 PM

    Hi Doug;

    Yes, you sure can.

    Here is what my STD Framework captures from the EXE at start-up & logs it ...

    You can download my framework and look at where & how I capture this information. You are most welcome to copy the related code into your own PB application if you like instead of adopting the whole framework. My framework's GNU license states that up front. Also, its free too! 😉

    Let me know if you need any further help

    HTH

    Regards ... Chris


    pastedImage_0.png (116.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 06:06 PM

    I use the following code:

    string ls_version

    contextinformation lcx_key

    /* Get PB Version. */

    GetContextService ( "ContextInformation", lcx_key)

    lcx_key.GetVersionName ( ls_version )

    st_screen.text = " PB:" + ls_version

    Which returns 12.5.2 when I run it. I don't know how to get the specific build number.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2015 at 05:28 PM

    Dependency Walker

    Dependency Walker (depends.exe) Home Page

    Load up the application exe file in the tool and it will tell you what it references. The first item will generally be the version specific PB VM dll.


    dependa.PNG (55.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2015 at 06:15 PM

    You can right click on any PowerBuilder dll and go to properties and check in details option.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.