on 2015 Dec 10 4:21 PM
Hello,
Does anyone know how to determine which version of PowerBuilder was used to build an executable?
Thank you,
Doug
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can right click on any PowerBuilder dll and go to properties and check in details option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.