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.

Access a Local Ext. Functions in a PB NVO from jaguar

3 posts in General Discussion (old) Last posting was on 2000-02-18 19:24:03.0Z
Gilbert Posted on 2000-02-18 17:41:03.0Z
Newsgroups: sybase.public.easerver
From: "Gilbert" <tech@alvia.com>
Subject: Access a Local Ext. Functions in a PB NVO from jaguar
Date: Fri, 18 Feb 2000 18:41:03 +0100
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 194.179.77.6
Message-ID: <347_aY0K7kje$GA.204@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28370
Article PK: 160395

Hi:

I have declared local external functions in n_jaguar in order to use a custom dll from a nvo.
n_my_nvo is inherited from n_jaguar. The jaguar component name is testpkg.
The dll functions work well from a PB standard application.
I generated the component from PB, then generate stub from jagadmin, compile and copy *.class in
class03 Dynamo directory, etc...
I copy the dll in %jaguar%\repository\component\testpkg\n_jaguar\c1, with the PBD.
I test another function that returns a simple string from dynamo and is working well.
The function is called from dynamo this way:

var comp_obj = java.CreateComponent("testpkg/n_my_nvo","iiop://localhost:9000", "jagadmin", "");
if (comp_obj == null){
document.writeln("<FONT SIZE=+1 Color=Red>ERROR:</FONT><BR>" + site.GetErrorInfo());
exit;
}
var ls_result = comp_obj.f_myfunction();
document.writeln(ls_result)
/************ srv.log **************/
Feb 18 18:20:06 2000: n_jaguar activate: 1
Feb 18 18:20:06 2000: n_my_nvo activate
Feb 18 18:20:06 2000: Warning: DLL name is different, using previous name
Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0014) Application terminated.

Error: Error opening DLL library mydll.dll for external function at line 5 in function f_myfunction
of object n_my_nvo.

Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0021) Application terminated.

Error: Bad runtime function reference at line 5 in function f_myfunction of object n_my_nvo.
/*****************************/

any help ?
Thanks
Gilbert


Gilbert Posted on 2000-02-18 19:24:03.0Z
Newsgroups: sybase.public.easerver
From: "Gilbert" <tech@alvia.com>
Subject: Re: OK
Date: Fri, 18 Feb 2000 20:24:03 +0100
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 194.179.77.6
Message-ID: <347_jFjoeeke$GA.184@forums.sybase.com>
References: <347_aY0K7kje$GA.204@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28362
Article PK: 160388

I moved it to c:\winnt\ and it worked.

Thanks
Gilbert

Gilbert <tech@alvia.com> wrote in message news:aY0K7kje$GA.204@forums.sybase.com...
> Hi:
>
> I have declared local external functions in n_jaguar in order to use a custom dll from a nvo.
> n_my_nvo is inherited from n_jaguar. The jaguar component name is testpkg.
> The dll functions work well from a PB standard application.
> I generated the component from PB, then generate stub from jagadmin, compile and copy *.class in
> class03 Dynamo directory, etc...
> I copy the dll in %jaguar%\repository\component\testpkg\n_jaguar\c1, with the PBD.
> I test another function that returns a simple string from dynamo and is working well.
> The function is called from dynamo this way:
>
> var comp_obj = java.CreateComponent("testpkg/n_my_nvo","iiop://localhost:9000", "jagadmin", "");
> if (comp_obj == null){
> document.writeln("<FONT SIZE=+1 Color=Red>ERROR:</FONT><BR>" + site.GetErrorInfo());
> exit;
> }
> var ls_result = comp_obj.f_myfunction();
> document.writeln(ls_result)
> /************ srv.log **************/
> Feb 18 18:20:06 2000: n_jaguar activate: 1
> Feb 18 18:20:06 2000: n_my_nvo activate
> Feb 18 18:20:06 2000: Warning: DLL name is different, using previous name
> Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0014) Application terminated.
>
> Error: Error opening DLL library mydll.dll for external function at line 5 in function
f_myfunction
> of object n_my_nvo.
>
> Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0021) Application terminated.
>
> Error: Bad runtime function reference at line 5 in function f_myfunction of object n_my_nvo.
> /*****************************/
>
> any help ?
> Thanks
> Gilbert
>
>


Jim O'Neil [Sybase] Posted on 2000-02-18 17:59:03.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 18 Feb 2000 12:59:03 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Access a Local Ext. Functions in a PB NVO from jaguar
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 51
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38AD8867.EA2E19E7@sybase.com>
References: <347_aY0K7kje$GA.204@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28368
Article PK: 160393


Gilbert wrote:

> Hi:
>
> I have declared local external functions in n_jaguar in order to use a custom dll from a nvo.
> n_my_nvo is inherited from n_jaguar. The jaguar component name is testpkg.
> The dll functions work well from a PB standard application.
> I generated the component from PB, then generate stub from jagadmin, compile and copy *.class in
> class03 Dynamo directory, etc...
> I copy the dll in %jaguar%\repository\component\testpkg\n_jaguar\c1, with the PBD.
> I test another function that returns a simple string from dynamo and is working well.
> The function is called from dynamo this way:
>
> var comp_obj = java.CreateComponent("testpkg/n_my_nvo","iiop://localhost:9000", "jagadmin", "");
> if (comp_obj == null){
> document.writeln("<FONT SIZE=+1 Color=Red>ERROR:</FONT><BR>" + site.GetErrorInfo());
> exit;
> }
> var ls_result = comp_obj.f_myfunction();
> document.writeln(ls_result)
> /************ srv.log **************/
> Feb 18 18:20:06 2000: n_jaguar activate: 1
> Feb 18 18:20:06 2000: n_my_nvo activate
> Feb 18 18:20:06 2000: Warning: DLL name is different, using previous name
> Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0014) Application terminated.
>
> Error: Error opening DLL library mydll.dll for external function at line 5 in function f_myfunction
> of object n_my_nvo.
>
> Feb 18 18:20:07 2000: PowerBuilder Application Execution Error (R0021) Application terminated.
>
> Error: Bad runtime function reference at line 5 in function f_myfunction of object n_my_nvo.
> /*****************************/
>
> any help ?
> Thanks
> Gilbert

Looks to me like just a pathing issue - Jaguar knows where to find the PBD, but the PBVM doesn't know
to look in %jaguar%\repository\component\testpkg\n_jaguar\c1 for your DLL (unless you were to put that
directory on the path). Try putting mydll.dll in some directory on the system PATH.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc