cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
1,559

Hello,

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

Thank you,

Doug

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

former_member190719
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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