You need to be logged in to view a user's profile.
  1. Darren Longenecker
  2. PowerBuilder
  3. Monday, 8 April 2024 20:22 PM UTC

Version 2019 R3 Build 2803

 

Having trouble using ConnectToNewObject on a newer version of a recently built DLL.

The error I get back is -3, which the help files says means "Object could not be created".

The old one was built 8 years ago and connects fine.

I'm wondering if there's any way to further explore why it can't be created? Or any other helpful tidbits the community may have?

THX!

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 8 April 2024 20:43 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Darren;

  This has nothing to do with PB. This is a request to connect to an OLE Server (performed by the O/S). As such, your DLL needs to be registered as an OLE Server  - which would also include appropriate Windows Registry entries. If this registration and/or registry entries are not present, then the ole connect would fail as you seem to be getting.  HTH 

Regards ... Chris 

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.