I'm tasked with maintaining/updating a legacy app that was written in an early version of Powerbuilder. We've upgraded to 2021 and are trying to make some menu modifications with 'Print' and 'Print Preview'.
Currently when hitting 'Print' it fails with "Error opening DLL library pfccom32.dll for external function..." . Tring "Print Preview" does nothing. 'Print Immediate' works fine.
Any workarounds or is it a fools errand?
The scripts are handled through pfc_m_master
m_print
SetPointer (hourglass!)
of_SendMessage ("pfc_print")
m_printpreview
of_SendMessage ("pfc_printpreview")
m_printimmediate
of_SendMessage ("pfc_printimmediate")
of_SendMessage
n_cst_menu lnv_menu
return lnv_menu.of_sendMessage (this, as_message)
But it seems that some extension objects are missing. You have to add it to your extension PBLs. You can copy it from PFC extension you've got from GitHub or you inherit a new object from PFC and save it.
Some of the objects from platform and file service are not valid anymore (because of unsupported OS). You only need the master object and the *unicode. (all others like hpux, mac, ... are not valid anymore).
I think you should start to compare your extension PBLs with the PFC extension PBLs to see what object you are missing and what you don't need anymore.
You might also have to update any PBDOM extension or PBL / PBD file if you have upgraded.