1. Federico Villanustre
  2. PowerBuilder
  3. Friday, 03 August 2018

How can I get if the Windows where my application runs is 32 or 64 bits? (Como puedo obtener si el Windows donde corre mi aplicacion es de 32 o 64 bits)

Who is viewing this page
Federico Villanustre Accepted Answer Pending Moderation
0
Votes
Undo

Thanks Roland!!!!!

Your help was very useful. Thanks for your time. Regadars

 
Comment
There are no comments made yet.
  1. Monday, 6 August 2018
  2. PowerBuilder
  3. # 1
Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

Hi Frederico;

  If you just want to get the basic O/S information .. have a look at Roland's code: http://www.topwizprogramming.com/freecode_osversion.html

  If you want detailed information about your App ans its surroundings (native, web browser or mobile) ... then have a look at the STD framework ... for example:

Native:

 

Mobile:

 

HTH

Regards ... Chris

 

 

Comment
There are no comments made yet.
  1. Friday, 3 August 2018
  2. PowerBuilder
  3. # 2
Clarence Chamorro Accepted Answer Pending Moderation
1
Votes
Undo

Got this code from the PB Help.

string ls_version
environment env
integer rtn

rtn = GetEnvironment(env)

IF rtn <> 1 THEN RETURN
ls_version = "Version: "+ string(env.pbmajorrevision)
ls_version += "." + string(env.pbminorrevision)
ls_version += "." + string(env.pbfixesrevision)
ls_version += " Build: " + string(env.pbbuildnumber)

MessageBox("PowerBuilder Version", ls_version)


Comment
In PB 12.6 and PB 2017 the environment object has a property ProcessBitness. It tells you if the program is 32 or 64 bit. The poster wants to know the bitness of Windows itself which can be gotten using my OSVersion object.
  1. Roland Smith
  2. Friday, 3 August 2018
There are no comments made yet.
  1. Friday, 3 August 2018
  2. PowerBuilder
  3. # 3
Roland Smith Accepted Answer Pending Moderation
0
Votes
Undo

This will give you all the info you need:

http://www.topwizprogramming.com/freecode_osversion.html

 

Comment
The function of_getosbits will return 32 or 64.
  1. Roland Smith
  2. Friday, 3 August 2018
There are no comments made yet.
  1. Friday, 3 August 2018
  2. PowerBuilder
  3. # 4
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.