× 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.




On 27/01/2006, at 9:05 AM, Al Pineda wrote:

D Image           PR                  extproc('QimgCvtImg')
D   ControlS                          LIKE(QIMC0100)
D   InputImageS                       LIKE(QIMI0100)
D   MainStgS                          LIKE(QMAINI01)
D   OutputStGS                        LIKE(QIMO0200)
D   MainStgOS                         LIKE(QIMO0300)
D   Feedback                          LIKE(QIMF0100)

Two problems:
        1) Missing error code definition on the prototype (7th parameter).
2) MainStgOS is not LIKE(QIMO0300). It is simply a chunk of storage. You could probably code it like MainStgS or specify OPTIONS(*OMIT) and pass a null pointer. Note: This won't fail but is misleading.

InputImageS is either LIKE(QIMI0100, QIMI0200, or QIMI0300) depending on the input source being used.

OutputStGS is either LIKE(QIMO0100, QIMO0200, or QIMO0300) depending on the output source being used.

For your requirements I would expect input QIMI0100 and output QIMO0200 should do the trick. Pass an empty variable or *OMIT for the 5th parameter.

Also change all the B data types to I in your data structures.

Note: I don't see why the API call would fail with a pointer error. What program and statement did the pointer error occur on?

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



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.