1. Scott Blacklock
  2. PowerBuilder
  3. Wednesday, 6 September 2017 05:52 AM UTC

Hi,

Is it still possible to create a COM/OLE object from a nonvisual object in PowertBuilder?  We have an nvo that we used to deploy as an OLE object which other apps could connect to but I cant seem to find where to do this in PB 12.6.  Has this feature been removed from PB?

Thanks

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 6 September 2017 12:49 PM UTC
  2. PowerBuilder
  3. # Permalink

Yes, that feature was removed for PowerBuilder 12.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 6 September 2017 13:12 PM UTC
  2. PowerBuilder
  3. # 1

Hi Scott;

   Yes, that was the OLE Server feature in older versions of PB. As Roland states - that feature was removed a few releases ago by Sybase (before SAP).

Maybe if you can expound on what you need to share functionality wise between Apps, we can suggest other alternative(s).

Regards ... Chris

 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 6 September 2017 14:44 PM UTC
  2. PowerBuilder
  3. # 2

If you have an older version of UNICODE PowerBuilder available, like version 11.x, as a workaround poerhaps you can use that to create your COM/OLE object.

 

Good Luck,

Olan

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 6 September 2017 18:28 PM UTC
  2. PowerBuilder
  3. # 3

What language are the other calling programs written in?

Comment
There are no comments made yet.
Scott Blacklock Accepted Answer Pending Moderation
  1. Thursday, 7 September 2017 01:06 AM UTC
  2. PowerBuilder
  3. # 4

Hi,

Thanks for the answers, obviously we haven't used that feature for a while...  :)

Our use case is that we used to have an OLE object that exposed methods that allowed an external app (a workflow app which at the time was written in VB6) to open windows in our PB application. The OLE object, when called, connected to our app by getting a handle to the MDI window, firing an event on it and passing information in a shared memory block.

We now want to do the same thing but from a link on a web page (i.e. the user clicks on a link on a page which brings focus to our app and opens a particular window).  So we are looking at using a registered URI scheme (https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx) to run an external exe from a link.  We were just going to use the OLE object from the exe but since we cant create the OLE object, we can just bring the functionality of the OLE object into the exe that is run by the URI scheme.

Seems like our easiest option.

Thanks

Scott

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.