in One.h etc, but I was hoping there was a way of returning the constant, say One_Char0, instead of 4001, when returning the id value in BmpInfo(); such as in your example:

id = BmpInfo(index, &width, &height,&depth,&trans,&comp);

which alway returns a number - which is great normally, but I suddenly have to check through lots of resources to strip some stuff here and add some stuff there. My task would be both faster and easier if I could navigate by constants rather than numbers. I tried making 'id' a string instead of an integer, but got the same result.

Failing that, I'll probably try converting the .h files to CSV's, import them to PilotDb and use the Db functions in PToolbox to do what I need to do.

Thanks.

Mikael

Posted: Tue Jan 18, 2005 8:08 pm

by jstadolnik

Keep in mind that when the complier launches, the pre-processor replaces all macros specified by #defines with their actual values (numbers or strings), after which the actual compile begins. As such, the compiler doesn't see any "constants" only numbers (or strings if the value is in quotes).

Also, bitmap resources do not contain any internal text information. So it's not possible for BmpInfo() to retrieve a string label for a bitmap.