Reputation: 11
I would like to create a dll in PowerBuilder 12.5 to use in PowerBuilder 6 or in another programing language. I've been searching how to do that, but I only find how to export a dll made in C++ (as an example) to use in PowerBuilder. Anybody knows if is it possible to do what I'm looking for?
Upvotes: 1
Views: 1044
Reputation: 186
You cannot simply generate DLLs to be called from other languages or other PB releases.
Reason: PowerBuilder compiles to its own P-code VM (like Java compiles to JVM). PB machine code is still "non-exposed" code despite hiding in a DLL file.
However, PB 12.5 can generate "wrappers" to encapsulate PB non-visual classes as .NET assemblies or .NET web services (ref: PowerBuilder's "Deploying Applications and Components to .NET")
PB 6 released in 1997 is pre-pretty-much-everything. Unaware of Java, .NET, web-services, and Unicode. Migrate any PB 6 code to a recent PB release, like PB 2017.
Upvotes: 1