1. Tony Meißner
  2. PowerBuilder
  3. Tuesday, 24 August 2021 07:56 AM UTC

Hello all,

 

i want to use different ORCA-versions (105, 125, 170, 190) in C#. I Installed the newest Powerbuilder Versions and did a [DllImport("PBORC...")] with each version.

 

But in the end, i could not use the 12.5 and 19.0 version because the dll`s are not registered. I did a little research and i think the problem is that orca version 12.5 and 19.0 are not in the C:\Program Files (x86)\Appeon\Shared\PowerBuilder directory. I also discovered that the 19.0 version does not have a PBORC190.dll, the name is PBORC.dll...

I also tried to register the dll manually like this:

regsvr32 "C:\Program Files (x86)\Appeon\Shared\PowerBuilder\PBORC190.DLL"

For the version 19.0, i renamed and moved the dlll to the shared folder.

 

 

Is there any workaround to use the 12.5 and 19.0 orca versions???

Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 24 August 2021 14:33 PM UTC
  2. PowerBuilder
  3. # 1

Registering a DLL is only needed if it has a COM interface. As long as the folder is in the system path, it should be able to find it.

With PB 2019-R3 and PB 2021, the runtime folders aren't added to the system path.

The application runtime files are in:

C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime ?????

The IDE files (including PBORC.DLL) are in:

C:\Program Files (x86)\Appeon\PowerBuilder ??.0\IDE

The current runtime folder can be found in the registry:

HKEY_CURRENT_USER\SOFTWARE\Sybase\PowerBuilder\??.0  -  CurrentRuntimeVersion

Your app can update the system path for the current process using GetEnvironmentVariable and SetEnvironmentVariable.

 

 

Comment
  1. Tony Meißner
  2. Wednesday, 25 August 2021 09:25 AM UTC
ive added the C:\Program Files (x86)\Appeon\PowerBuilder 19.0\IDE to the system path variables and tried to acces the PBORC.dll via C#. It shows me again that the dll couldn't be found....
  1. Helpful
  1. Roland Smith
  2. Wednesday, 25 August 2021 12:37 PM UTC
Did you also add the runtime folder to the path?
  1. Helpful
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.