1. Gastón Clara
  2. PowerBuilder
  3. Tuesday, 10 September 2024 10:07 AM UTC

Hi,

 

In my company, we have C++ code that loads PBVM19.DLL in order to access PB code. Everything worked fine while we were running version 19. Once we moved to 2022 R2 we are having issues loading PBVM.DLL, Our C++ code is unable to load the DLL. We've tried lots of things but nothing worked.

We also tried to follow the example on the documentation (https://docs.appeon.com/pb2022/native_interface_programmers_guide_and_reference/XREF_79734_Calling.html#XREF_67012_Creating_the_C) but, once again, it doesn't work.

 

Any help will be appreciated.

Thanks.

 

Accepted Answer
Gastón Clara Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2024 12:14 PM UTC
  2. PowerBuilder
  3. # Permalink

Problem solved. The issue was related to to the location of PBVM and its references. Using a path helps find PBVM file but not its dependencies. 

We solved the problem by setting the right directory when using PB and then restore it to its original one.

Thanks a lot for your help.

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 10 September 2024 15:09 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2024 11:42 AM UTC
  2. PowerBuilder
  3. # 1

Hi.

Powerbuilder 2022 R3 is built using a newer version of C++. Maybe the problem you encounter is related to that change.

Andreas.

Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2024 11:13 AM UTC
  2. PowerBuilder
  3. # 2

If you are building a x64 exe make sure that the PowerBuilder x64 runtime can be found.

hth

Arnd

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.