#4662 - blaow - Sun Apr 06, 2003 5:20 pm
i ran into a compilation problem when i try to use strings as variables in my code using DevKit Advance. is this normal?
what im basicly doing is an initialicing background function that will basicly do the following inside a loop
layerName[counter] = BG_COLOR256 | TEXTBG_SIZE_256x256 | (size<< SCREEN_SHIFT);
for each and every layer.. im trying to pass the names of each layer in a array of strings( layerName[]) wich contain variable names such as REG_BG0CNT, REG_BG1CNT, REG_BG2CNT..... and so on depending on the number of layers. any help is appreciated.. thnks
_________________
blaow~~
what im basicly doing is an initialicing background function that will basicly do the following inside a loop
layerName[counter] = BG_COLOR256 | TEXTBG_SIZE_256x256 | (size<< SCREEN_SHIFT);
for each and every layer.. im trying to pass the names of each layer in a array of strings( layerName[]) wich contain variable names such as REG_BG0CNT, REG_BG1CNT, REG_BG2CNT..... and so on depending on the number of layers. any help is appreciated.. thnks
_________________
blaow~~