× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




The problem is not in the API Error Data structure. The problem is in defining the prototype so the API doesn't give me an

No. The problem is that you're passing a pointer where the API wants a character string. Here's your prototype:

0153.00 d Dump_Module_Variables...
0154.00 d                 pr                  extproc('QteDumpModuleVariables')
0155.00 d     Reveiver...
0156.00 d                                 *

Here's what it SHOULD be:

     d Dump_Module_Variables...
     d                 pr                  extproc('QteDumpModuleVariables')
     d     Reveiver...
     d                            65535a   const options(*varsize)

Note that the API documentation states that this first parameter is INPUT (in RPG, that's CONST) and that it's a CHAR(*) field. CHAR(*) means "character field that varies". in RPG, that's the A data type with options(*VARSIZE).

The Error Code parameter ( parameter #9 ) should be the same thing -- except that it's not CONST.

Make sure you initialize the error code parameter. In particular, make sure the first field is either set to zero or the length of the data structure. If you leave it at the default value (*blanks) you'll get another similar error.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.