|
On Thu, 24 Mar 2005 15:02:16 -0500, Wilt, Charles <CWilt@xxxxxxxxxxxx> wrote:
> Steve,
>
> Here's the example out of the manual:
> class MyClass
> {
> static
> {
> System.loadLibrary ("MYSRVPGM");
> }
> native boolean checkCust (byte custName[]);
> void anotherMethod ()
> {
> boolean found;
> // call the native method
> found = checkCust (str.getBytes());
that is pretty straightforward. Any gotchas in terms of passing a
data struct by reference and having the RPG proc update some of the
fields in the struct?
> }
> }
>
> H nomain
>
> Frec IF E K DISK
>
> D checkCust PR N EXTPROC(*JAVA:'MyClass':'checkCust')
> D custName 100A VARYING CONST
>
> P checkCust B EXPORT
> D checkCust PI N
> D custName 100A VARYING CONST
> /free
> chain custName rec;
> return %found;
> /end-free
> P checkCust E
>
good examples, they help a lot. thanks to Joe and Charles.
-Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.