1. Linda Butler
  2. PowerBuilder
  3. Tuesday, 7 January 2020 17:25 PM UTC

We are just starting to explore upgrading our applications from PowerBuidler 10.5 to PowerBuilder 2019.  We have a few applications that we use a 3rd party product 'PowerImage32' that was developed/sold by Visionary Solutions, Inc.  One of the applications that we use this product is for a Photo ID system to pull in jpg files from a connected camera into the system, display it in the system, and convert the .jpeg file to a blob to save to database.  We also use it another application to pull in images directly from a scanner using the twain driver.

I just did a migration of a small application that displays employee photos in the application.  I get an error on one of the functions called from PowerImage32 (resides in Pwrimg32.dll).

Does anyone know if PowerImage32 works with PowerBuilder 2019?  If not, what options do we have in being able to handle images (retrieve, display, save to database) in PowerBuilder 2019.   

Who is viewing this page
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 7 January 2020 18:48 PM UTC
  2. PowerBuilder
  3. # 1

Hi Linda;

   There have not been any changes to the way PB calls external functions since PB 10.x up to and including PB2019. The only exception is when you are passing structures where the elements have to be byte aligned. In that case, you can use the new "progma_pack" syntax option, for example

FUNCTION int STLAREGIO ( ref struc_kfzrechnerneu struc_kfz ) LIBRARY "KFZ_SS.DLL" alias for "STLAREGIO;Ansi" progma_pack(1)

progma_pack(1) is 1-byte align, progma_pack(8) is 8-bytes align. Rarely required though in my experience.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Linda Butler Accepted Answer Pending Moderation
  1. Tuesday, 7 January 2020 18:02 PM UTC
  2. PowerBuilder
  3. # 2

Update....

I'm not getting an error now.  I discovered I was missing visimg32.dll from the folder I was running from.

Hopefully, we will luck out in getting other applications that use this migrated and running under PowerBuilder 2019.

 

 

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.