I have a PB Classic 11.5 application for which I need to use REST Services. I know very little about how to do this. Bruce Armstrong's YouTube video published on Dec 7, 2012 (SAP D&T Academy - How to Use Non-Visual .NET Assemblies in PowerBuilder Classic Win32 Apps) was very helpful to me in creating the .NET assembly. If I create a "WPF Window Application" in PB .NET 12.6, my REST Client Proxy works fine.
But when I create a PB .NET 12.6 Assembly project and try to use in with my PB Classic 11.5 application I am having issues. Specifically, I am getting error code -3: "Object could not be created" when using myOLEObject.ConnectToNewObject("my.class"). If I use myOLEObject.ConnectToObject("", "my.class"), I get error code -5: "Ca not connect to the currently active object." I am assuming that "Ca not" is really "Cannot". I used RegAsm to register the assemblies. I have tried both placing the assemblies in the GAC with strong names for the DLLs and using the assemblies as local files without strong names, and many countless other things that I cannot even remember now.
I have spent several days doing Google searches. Part of my problem may be not knowing the proper terminology to use for my searches. I even found the same question being asked on the old Sybase Forums about 8 years ago, but no one provided a final answer. I have also privately emailed Bruce requesting a link to his source code used in the video. While I am waiting for his response, I continued doing Google searches and decided to ask the question here.
Thank you for your help. (This is my first question on SAP community.)
Lane Poole