|
Thanks Buck, I eventually found my problem this afternoon after having tried all sorts of weird contrivances. You are right, I did need it defined as an integer (signed or unsigned), but it transpired that my main problem was not defining VALUE for the RPG parameter and passing the pointer to the C routine instead...Oops. You'll be glad to know all works fine now. Thanks for your help Tony -----Original Message----- From: Buck Calabro/commsoft <mcalabro@commsoft.net> To: RPG400-L@midrange.com <RPG400-L@midrange.com> Date: 05 January 1999 05:17 Subject: Re: Calling ILE C/400 functions from ILE RPG/400 I think you are looking for <types.h> instead of <stddef.h> I have the compiler, but no stddef, In any event, try unsigned int - 10U 0 in your RPG for size_t. Buck Calabro CommSoft, Albany, NY mailto:mcalabro@commsoft.net "Tony Smithurst" <TonyS@tbsa.co.za> on 01/05/99 04:27:25 AM Please respond to RPG400-L@midrange.com To: "AS400 Mailing List" <RPG400-L@midrange.com> cc: Subject: Calling ILE C/400 functions from ILE RPG/400 Has anybody else done this? It is possible, using the ILE C/400 manuals on IBMs web site I have been able in ILE RPG/400 to prototype and call the routines from QC2IO *SRVPGM which is in QSYS even though I have not installed ILE C/400. However I am having a problem with File I/O (which is why I am doing it in the first place), and I do not have the QSYSINC/H STDDEF member on my system as I don't have the compiler. I think my problem lies in the definition of the TYPE "size_t" which the manuals fleeting refer to as integral but I would like to make sure. So, if any of you kind souls out there with ILE C/400 installed could possibly eMail me the "typedef struct" for "size_t" out of the include member "stddef" I would be very grateful. Tony Smithurst * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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.