|
On 10/07/2004, at 6:22 AM, Peter Grace wrote:
I've been fiddling with C/C++ on the AS/400 and am suffering from a lack of rudimentary knowledge on how you do simple things (like, return character arrays back to an RPG program)...
Are there any redbooks or documentation on the internet relating to "How to program in ILE-C for dummies!"
There used to be a couple of books written from a 400 perspective:
Common Sense C by Paul Conte C for RPG Programmers by Jennifer Hamilton
I've got several years of C programming experience so I know the syntax and highlights.. I know there must be some kind of extensions (through external API's and such) that make tasks like creating subfile programs and such a breeze...
For subfiles you would use: dbf = _Ropen( database file ) dspf = _Ropen( display file ) _Rformat( dspf, subfile ) for (i=1; 1<= rcdCount; i++) _Rreadn( dbf, &record, rcdLen, .... ) _Rwrited( dspf, &record, rcdLen, i ) end-for _Rformat( dspf, subfile control ) _Rwrite( dspf ) _Rclose( dspf ) _Rclose( dbf )
Any help/links to docs would be greatly appreciated!
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 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.