Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Automation Object Error" running a PB app as an OLE automation server for Lotus Notes

65 views
Skip to first unread message

P.S.L

unread,
May 15, 1998, 3:00:00 AM5/15/98
to

Hi there!

We are trying to access some objects that we developed in Powerbuilder
5.0.03 from an OLE Client using the Powerbuilder automation server
(Powerbuilder.Automation). When we do this using Visual Basic everything
works fine but, when we use Lotus Notes as the OLE client, we get an error
as soon as we try to set the automation-server's LibraryList. We also have
tried Powerbuilder 6 and the problem persists. Any idea about where the
problem can be or how we can solve it? If it can be of any help, this is
the code we are using in a Lotus Notes 4.6 database:


Dim OLEServer As Variant
Dim OLEClase As Variant
Dim ls As String

Set OLEServer = CreateObject("PowerBuilder.Application")
If Isobject(OLEServer) Then
'
' *** The error comes out when we execute anyone of the following
' *** instructions
'
OLEServer.LibraryList = "c:\PruebaOLE\ap_servidora.dll"
Set OLEClase = OLEServer.CreateObject("n_ap_servidora")
If Isobject(OLEClase) Then
OLEClase.f_retornar_mensaje("Hola")
Set OLEClase = Nothing
Else
Messagebox "The n_ap_servidora object was not created"
End If

Set OLEServer = Nothing
Else
Messagebox "The PowerBuilder.Application object was not created"
End If


Thanks in advance for any help we receive.

Lina Maria Londono Mesa
llon...@psl.com.co


Carson Hager[TeamPS]

unread,
May 17, 1998, 3:00:00 AM5/17/98
to

Lina,

The only thing I could find in the infobase was problems due to path
discrepancies. Is there anyway that VB has the PB dlls in its path and LN
does not?

Carson

----------------------------------------------------------------------------
Carson Hager Dynamic Data Solutions
Team Powersoft http://www.dyn-data.com
cha...@dyn-data.com


******** Are You Ready for the Web ********
www.jumpstart98.com


P.S.L wrote in message <01bd8013$2c78f360$110a...@LinaL.psl.in>...

P.S.L

unread,
May 18, 1998, 3:00:00 AM5/18/98
to

Carson:

I checked the Registry entry that refers to Lotus Notes and everything
seems to be OK. The string value "Path" in this key

My computer\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows\Current
Version\App Paths\notes.exe

has this value: \\Jupiter\notes.exe;c:\pwrs\sys32

The c:\pwrs\sys32 directory contains the file PBROI050.dll that, according
with the manuals, is required for OLE operations with PowerBuilder. Where
else can I check to see if I am missing something that it can be causing
the problem we have?

Thanks

Carson Hager[TeamPS] <cha...@dyn-data.com> wrote in article
<5nj3Wof...@forums.powersoft.com>...

Carson Hager[TeamPS]

unread,
May 18, 1998, 3:00:00 AM5/18/98
to

Lina,

Does that directory contain the PB runtime or the full list of PB
development dlls? There are several logged cases where this would not work
with the runtime kit. The full PB install had to be present.


Carson

----------------------------------------------------------------------------
Carson Hager Dynamic Data Solutions
Team Powersoft http://www.dyn-data.com
cha...@dyn-data.com

******** Are You Ready for the Web ********
www.jumpstart98.com


P.S.L wrote in message <01bd826a$7b680200$110a...@LinaL.psl.in>...

P.S.L

unread,
May 18, 1998, 3:00:00 AM5/18/98
to

Carson:

The "pwrs\sys32" directory contains the full list of PB development dlls

Lina

Carson Hager[TeamPS] <cha...@dyn-data.com> wrote in article

<v2NLP#ng9G...@forums.powersoft.com>...

Carson Hager[TeamPS]

unread,
May 18, 1998, 3:00:00 AM5/18/98
to

Lina,

It's starting to sound like a bug in the way that Lotus Notes expects the
OLE interface to work. I think it's probably time to report this one. Have
you called tech support and reported it yet?

As a test, have you tried to get LN to interface as an OLE client to other
OLE server applications?

Carson

----------------------------------------------------------------------------
Carson Hager Dynamic Data Solutions
Team Powersoft http://www.dyn-data.com
cha...@dyn-data.com

******** Are You Ready for the Web ********
www.jumpstart98.com


P.S.L wrote in message <01bd828e$b03a0040$110a...@LinaL.psl.in>...

P.S.L

unread,
May 21, 1998, 3:00:00 AM5/21/98
to

Hi Carson!

We haven't reported this bug yet and we haven't tried to get Lotus Notes as
an OLE client to any other OLE server application different form the one we
built in PowerBuilder. What we know, based on the answers I have gotten
from people I've contacted to see if they can help me, is that Lotus Notes
works fine using VisualBasic as an OLE server application. So, please, If
you know how we can solve the problem let me know.

As an additional information, when we try to connect Lotus Notes directly
to our OLE server application, we don't have the problem I've mentioned
about Powerbuilder.Automation. The point is this: We have several OLE
server applications and we need to offer access to them through only one
interface, in this case the PowerBuilder.Automation.

Thanks very much.

LINA


Carson Hager[TeamPS] <cha...@dyn-data.com> wrote in article

<iZQwego...@forums.powersoft.com>...

Carson Hager[TeamPS]

unread,
May 24, 1998, 3:00:00 AM5/24/98
to

Lina,

Is the PB app you are building an OLE "middle man", so to speak? Is it
basically just an interface to your other OLE servers?


Carson

----------------------------------------------------------------------------
Carson Hager Dynamic Data Solutions
Team Powersoft http://www.dyn-data.com
cha...@dyn-data.com

******** Are You Ready for the Web ********
www.jumpstart98.com


P.S.L wrote in message <01bd84f3$c37cd760$110a...@LinaL.psl.in>...

P.S.L

unread,
May 26, 1998, 3:00:00 AM5/26/98
to

Carson,

Yes, kind of. We don't want to have to have registered every OLE Server a
user can use, in every machine he can be working on. We just want to offer
access to what we built from only one 'entrance' without having to deal
with the registry every time we release a new OLE Server.

Lina

Carson Hager[TeamPS] <cha...@dyn-data.com> wrote in article

<pMelcR4...@forums.powersoft.com>...

0 new messages