1. rohit ranjan
  2. PowerBuilder
  3. Friday, 8 April 2022 08:14 AM UTC

 Hi,

We used to build Powerbuilder application via PowerGen tool. Our application uses icons/bitmaps and it gets embedded in the exe, as a result we do not need to explicitly place the image files in the folder containing the exe.

When we switched over to Powerbuilder compiler we noticed icons/images does not get embedded and they have to be explicitly placed in the folder containing the exe. Could you please suggest how to progress with PBC without placing the images. 

PBR files are mapped on both the occasion.

We are using PB-2019 R3 Build 2728.

Thanks,

Rohit

Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 8 April 2022 10:23 AM UTC
  2. PowerBuilder
  3. # 1

Also pay attention to the following difference difference when using pbcxxx (documented in PBC manual).

Andreas.

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 8 April 2022 10:15 AM UTC
  2. PowerBuilder
  3. # 2

Hi Rohit.

One thing you should pay attention to is that it isn't enough to simply add the resources you use in the pbr file. You have to reference them the exact same way as they are referenced in your application. This means that if in your application you reference the file using full filename, then you have to do the same in your pbr. Examples:

Appication icon: myapp.ico -> in pbr you should add myapp.ico.

Appication icon: c:\myapp\myapp.ico -> in pbr you should add c:\myapp\myapp.ico.

Appication icon: .\myapp.ico -> in pbr you should add .\myapp.ico.

Appication icon: .\resources\myapp.ico -> in pbr you should add .\resources\myapp.ico.

That is the most important thing to pay attention when adding resource (images - icons) files to pbr. And this has to be done fore every resource you want to embed.

Andreas.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.