|
먼저 답변 갑사합니다.
for (int m=0; m<=8; m++) {
if(Switch.SubString(m,1) == "0") {
for(int i=1; i<FormCfg_102->ComponentCount-1; i++) {
if(String(FormCfg_102->Controls[i]->ClassName()) == "TPanel")
((TPanel *)(Controls[i]))->Color = clRed;
}
}
else if(Switch.SubString(m,1) == "1") {
for(int i=1; i <FormCfg_102->ComponentCount-1; i++){
if(String(FormCfg_102->Controls[i]->ClassName()) == "TPanel")
((TPanel *)(Controls[i]))->Color = clBlue;
}
}
}
컴파일은 되는데 실행시 오류 메세지가
Access violation ata address 022F8BD0 in module 'CFG_102(= 프로그램 이름'
Read of address FFFFFFFF.
좀 도와주세용.
|