|
>Date: Thu, 8 Jun 2000 19:58:28 -0400 >From: "Pantzopoulos, Mike" <mikepantzopoulos@mynd.com> > >I've managed to get an external DS 'seen' by my C program by using >the #pragma directive. >The DS contains fields named XXXXX#. When the program is compiled >the fields end up being called XXXXXp (lower case p). I presume >this is because C does >not allow special characters in variable >names. When I reference the variable as XXXXXp, the compiler >says the variable must be declared before being used. Mike, I tried using mapinc where a subfield has the # character, and I had no trouble using the name with p instead of #: #pragma mapinc ("rec","BMORRIS/#JUNKF(REC)","input","d",,"") REC_i_t rec; rec.PARTp = 10; Ah, I think I can guess what your problem is. If I do: rec.x = 10; I get a message saying "x must be a member of the struct or union". If I do x = 10; I get a message saying "identifier x must be declared before it is used". You have to declare a variable of the type of the struct that gets defined, and then you have to specify the names like this: ds.subfield Barbara Morris +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | 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-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.