1. Erick Siliezar
  2. PowerBuilder
  3. Sunday, 4 October 2020 00:16 AM UTC

Is there a way to verify if my PowerBuilder application was compiled in 32 Bit or 64 Bit?

Currently I'm compiling my application on both version 32 bit and 64 bit same code, but I need to verify the compilation because I need to reference another third party components (DLL's).

  For example on this pseudocode I'm trying to verify which reference should I use

     If myapp is 32bit then

             Use 32bit dll reference

    Else

             Use 64bit dll reference

   End If

 

Currently I'm using a Boolean variable to do this validation but I need to change it on each compilation, I'm trying to fine something more effective, without apply code changes on each compilation.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 4 October 2020 01:07 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Erick;

   The "Environment" object has a "ProcessBitness" property that you can check for that.

Regards ... Chris

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.