|
On 02/12/99 11:41:51 AM Jon.Paris wrote: > >> How can I find which one? Using debug, I see that the darned >values are the same in the RPG program as they are in the C program, which >leads me to believe that I have the definition wrong somehow... > >>From what you describe, the third parm has to be passed by Value - why were >you describing it as Const ? I tried it previously as Value and got the same error. Basically, I thought that all C routines got parms passed by value unless the include file explicitly states const. Does that sound right? All the other parameters in my RPG are defined as Value. When this didn't work, I started tinkering... >To determine which parm (and I'll lay odds it's the third) try specifying >the Proto with only two parms - if the error is different then the third is >the problem. As I say though - the third should be pass by Value. Duh. I was thinking "RPG" where omitted parms cause an "omitted parm" error. Now that I tried it, I got the same error when I dropped the 3rd parameter, and again when I dropped the 2nd parameter! Now I'm really confused. I *wish* I could use C for this, because it works in C and I understand it; however the environment dictates that someone else besides me will have to support it, and that means an RPG program. Buck Calabro CommSoft, Albany, NY mailto:mcalabro@commsoft.net * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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.