I got a support request from a user this morning.
He installed the same code on two systems, and found that the aiss images only worked one one of them. After some investigation, it turns out that one was assigned tbimages: and the other was assigned TBImages:
So apparently my code only finds the one that uses the same case.
Considering that there are 256 possible ways to mix capitalization of TbImAgEs:, is there a better way to fix this than trying to guess the capitalization used?
Before this morning, I would not have even guessed that assigned names are case sensitive.
Thanks,
Lyle
Well, it is very difficult to make AmigaDOS case sensitive. How did you do it?
If you open a file called TBImages:new it is the same file as if you open tbimages:new.
However, if you make your own list of files and use strcmp to compare path names, then of course TBImages and tbimages are different.
I knew I should have copied my code with the original post.. It's been a busy morning here.
I _thought_ I had used Andys nice macros for substituting missing aiss images with text
on a per-gadget basis. But reading the code later I see the error of my ways..
I have completely separate routines for aiss and text based buttons, with a scan
of the assign list to choose which way to go.
Now changing strcmp to stricmp. Hanging head in shame..
Sorry to bother you. Thanks for the help.
That'll teach me to post questions before lunchtime!
Lyle
LyleHaze
Keep in mind that filenames may be case sensitive depending on the filesystem used (eg SFS partitions may be formated with the CASESENSITIVE switch).