We’re currently using PowerBuilder 2021 and I have a question about a possibility of executing functions within PowerBuilder that are part of external DLLs (generated within VS dot net environment). I’d like to explore possible ways of achieving it. Would you please advise me on that as soon as possible.
Thank you
We're utilizing "https://docs.appeon.com/pb2021/application_techniques/Calling_C_Assembly_in_an_Application.html" sample of the PowerScript code that calls the C# assembly after the import, without encapsulating the DotNetAssembly object. While it works on a particular machine where the powerbuilder is installed via executable located on a network drive, it crashes when that same executable of deployed application is accessed via laptop pc (via VPN). Would you please advise what can be done to correct this issue.
Thank you
1) Make sure that when you import the C# DLL that you do *not* specify any path to the assembly
2) Make sure that you deploy the DotNet PB runtime interface DLLs (PBDotNet.dll, PBDotNetFrameworkInvoker.dll, PBDotNetCoreInvoker.dll ) ...
https://docs.appeon.com/pb2021/application_techniques/Deploying_Applications_and_Components.html
HTH
Regards ... Chris
FYI: https://docs.appeon.com/pb2019r2/application_techniques/ch20s02.html