Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

External User Object

3 posts in Objects Last posting was on 2002-09-04 15:10:26.0Z
ClassLow Posted on 2002-08-28 14:53:02.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: ClassLow
Date: Wed, 28 Aug 2002 10:53:02 -0400
Subject: External User Object
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_48DF00D9FF2531260051C27385256C23.0051C28385256C23@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:992
Article PK: 713557

Hello all

I created a external visual User object with link to the dll and class. But
I don't know the style.

When I create a user object control (uo_1) in my window and call a function
"uo_1.dofunction(str1)", compiler don't recognize <dofunction>.

But this is indeed the function inside the dll.

What could have gone wrong...

please help


Angelo Gervasoni Posted on 2002-09-04 15:10:26.0Z
Newsgroups: sybase.public.powerbuilder.objects
Reply-To: "Angelo Gervasoni" <Angelo.Gervasoni@runtime.it>
From: "Angelo Gervasoni" <Angelo.Gervasoni@runtime.it>
Subject: Re: External User Object
Date: Wed, 4 Sep 2002 17:10:26 +0200
Lines: 27
Organization: Run Time Solutions S.r.l.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: host10-84.pool21756.interbusiness.it 217.56.84.10
Message-ID: <364_$6qIVcCVCHA.276@forums.sybase.com>
References: <364_48DF00D9FF2531260051C27385256C23.0051C28385256C23@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:968
Article PK: 713535

For OCX/OLE I use syntax like this:

uo_1.object.dofunction(str1)

Ciao
Angelo

<ClassLow> ha scritto nel messaggio
news:48DF00D9FF2531260051C27385256C23.0051C28385256C23@webforums...

> Hello all
>
> I created a external visual User object with link to the dll and class.
But
> I don't know the style.
>
> When I create a user object control (uo_1) in my window and call a
function
> "uo_1.dofunction(str1)", compiler don't recognize <dofunction>.
>
> But this is indeed the function inside the dll.
>
> What could have gone wrong...
>
> please help
>


ajay Posted on 2002-08-28 15:01:47.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "ajay" <ajayvarier@yahoo.com>
Subject: Re: External User Object
Date: Wed, 28 Aug 2002 10:01:47 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 216.141.189.85
Message-ID: <364_HABnoXqTCHA.197@forums.sybase.com>
References: <364_48DF00D9FF2531260051C27385256C23.0051C28385256C23@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:991
Article PK: 713556

Have you declared the dll in your window before calling this function.
Go to Declare then to Local/Global External functions and declare like the
following:
Function boolean ShowScrollBar( long hWnd, long wBar, boolean bShow )
Library "user32"
Replace the name showscrollbar and libraryname with your function name and
dll name respectively.
HTH

<ClassLow> wrote in message
news:48DF00D9FF2531260051C27385256C23.0051C28385256C23@webforums...
> Hello all
>
> I created a external visual User object with link to the dll and class.
But
> I don't know the style.
>
> When I create a user object control (uo_1) in my window and call a
function
> "uo_1.dofunction(str1)", compiler don't recognize <dofunction>.
>
> But this is indeed the function inside the dll.
>
> What could have gone wrong...
>
> please help