We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello,
i have a simple little structure like this
unsigned char index;
struct tag { unsigned char a[20]; unsigned char b[20]; unsigned char c };
then i declare a pointer like this
struct tag TAG_PTR;
it seems that TAG_PTR->c; is valid and generates no errors
however TAG_PTR->a[index]; generated BAD OPPERAND TYPE error
and TAG_PTR->a[10];(or any other constant value) and TAG_PTR->a; generate no errors.
obviously using the index variable is the problem, but im not sure how to work around it. Any help would be greatly appreciated.
Like that, you're not declaring a pointer at all.
it seems that TAG_PTR->c; is valid
It's not.
obviously using the index variable is the problem
No, it's not. The problem is that you didn't actually declare TAG_PTR as a pointer.
That was a typo, sorry i meant to type
struct tag *TAG_PTR;
i cant just cut and paste my code sorry. Im working on 2 computers and the development pc is secured, i can not move data directly from it to this PC.
Well, I'd start by the obvious - is your index out of range, maybe? Is your debugger secured, too (sorry for that, no harm intended...) ?
Ho sorry, this is a build problem. I missed that. hmm.
Tapeer,
i watched for some day and see you still doing the crazy responses ;)
Always yo're friend.
Zeusti.
Ah, it is Teutsi. I thought we got rid of your charming presence, but what the hell. BTW: I was very helpful recently! You can blame work stress if you like.
Tapeer.
i come to the forem when i am not so busy and see what advise my old freinds are saying. all proffesionals must give advise to the ones who are new and do not understand dificcult documnets [like abi, hahaha].
but i now am veeeery busy and have to go agin.
Always yo're freind.
So what is worse, tutsi, not knowing the ABI or proper English spelling (do you also make mistakes spelling the names of variables in your "programs", tutsi?). I have a feeling you get my drift.
it is why i like you and say you are my freind.. you make me laff so much. you right like you think you are always write. do not worrey. what you right will not make me anger. even if you try a bit harder.
(lovingly reffered to as tutsi by freinds)
Tutsi,
Thanks for making my point:
you right like you think you are always write.
Aha.
very sorry i am late in ansewring you. i was awake all night to keep my team codeing properley{again}.
i must go now. but i will look at yo're responses when i feel sad and want a little guffaw.
do not change or you will no more be the Tapeer we all know. but remember to always read the manuals. we do not want more deafs.
i was awake all night to keep my team codeing properley{again}
Did you at least serve the poor chaps a cup of tea, ah, tutsi?
Hi Zeusti,
(Sorry for my very limited English Skill.)
There is a Read-Only thread discussing:
http://www.keil.com/forum/16566/
Author Cpt. Vince
It seems to me that many of the 'regular' contributors are very savvy in the art of embedded design. I was wondering just what projects they are doing, or have done in the past that are worthy of mentioning?
I think our readers might be interested in such works, and give the casual reader something to ponder: especially since they are taking advice from these 'regular' contributors.
And it is a pity to me that, you didn't join that discussing.
And I am also very interested in that, where do you come from? What language is your first language? (I come from Taiwan, I am a Taiwanese/Cantonese/Chinese.)
Besides, I think that, do not change or you will no more be the Tapeer we all know. the above statement shows your wisdom. but remember to always read the manuals. we do not want more deafs. the above statement shows something negative and naughty.
As a Chinese, I believe that: The sea can hold the water from thousands of rivers, it's big because of its capacity. A person is great when he can be tolerant and forgiving to many other people.
And also, I got a lot of helps from Tamir, so I believe that Tamir's posts are very helpful.
Sorry for posting something stupid.
"Sorry for posting something stupid."
I would not call it "stupid", but merely unfortunate consideration to the writings of "<whatever> Zeusti", recognized by most as a troll here. A search for it (Zeusti) should give you enough pause in the future to avoid entertaining it.