Mail Archives: djgpp/1998/12/21/01:22:16
Hello
I couldn't find the earlier posting, But I think I know what you are talking
about, and how to fix it.
does your code look something like this?
typedef struct TEST
{
int x,y;
}TEST;
TEST it;
int main()
{
TEST temp;
temp=it;
temp.x=10;
temp.y=50;
// then here is were you find out that it.x isnt 10
}
I found that in DJGPP(and other free compilers) that you can only read from
temp.x and not write. to write to it you have to do this:
it.x=10;
it.y=50;
I havent found a way to sent the pointer to a procedure (as argument) and then
write to it there....yet.
hope this helped a bit..
Twidler
- Raw text -