1. Albert van Bochove
  2. PowerBuilder
  3. Thursday, 28 December 2023 17:20 PM UTC

Hello everyone, I am running my app on the client PC and I am getting the following error in the following code segment: function: of_printdlg,

Code:

32 long ll_hwnd

34 ll_hwnd = handle (aw_obj)
35 if ll_hwnd = 0 then
36 return -1
37 end if


39 return pfc_printdlg (ll_hwnd, astr_printdlg)

 

 the error is the following: " Error opening DLL library pfccom32.dl for external function at line 39 in function of_printdlg of object pfc_n_cst_platformunicode."

 

I am trying to look for a compatible pfccom32.dll  with PowerBuilder 2022, and windows 10 OS and I do not find it. How to solve this? Where to find this updated dll ?

Thanks in advance.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 18:28 PM UTC
  2. PowerBuilder
  3. # 1

Hi Albert;

  If I recall correctly, this was an old DLL that was in an old version of the PFC. AFAIK, that DLL was removed from the PFC quite a while ago including the calling PowerScript code. Also, it was only available in a 32 bit version. They never created a 64 bit version.  HTH

Regards ..  Chris 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 21:19 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Albert -

Chris is correct.

A pfccom32.dll was distributed with early versions of the PFC to provide access to some of the Windows common dialog windows when there was no native PowerBuilder-supplied way to access them. If the version of the PFC you are using is referencing this deprecated and removed DLL, this tells me you are using a very old version of these libraries. The Platform Service probably also contains objects for other, non-Windows platforms, such as AIX, HP/UX, and the Solaris operating systems... and support for these platforms were also dropped from PowerBuilder a very long time ago.

It is (way past!) time for you to upgrade your version of the PFC libraries. Your old version of the PFC will not work with an app that is deployed to 64-bit, as Chris indicated. PFC releases compatible with PB 2019, PB 2021 and PB 2022 are available for download on GitHub:

    https://github.com/OpenSourcePFCLibraries

Do not try to replace/swap only the PFCxxxxx pbl's, as this ill-advised, quick-and-dirty approach to PFC migration does not work. You need to replace all of the PFCxxxxx and PFExxxxx pbl's you have been using with new ones that are all from the same PFC version. If you have local modifications to any of the PFE-layer objects in your old, outdated version, you will have to examine those local modifications, analyze the code in the new version of the same object(s), and retrofit any modifications as appropriate. Hopefully, you have very few or none.

If you do not know if you have any local mod's to the PFE-layer objects, a simple (but slightly tedious) way to determine this is to Edit Source on every object in the PFE-layer pbl's... An un-modified/un-extended PFE-layer object will contain only a minimal amount of source code, as it will be an empty descendant of a PFC-layer object.

Good luck!

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.