一个关于bool型指针的问题
fafj 2001-06-02 11:48:00
bool* flag=&CheckBox1->Checked;
if (* flag) Label1->Caption="true";
else Label1->Caption="false";
[C++ Error] Unit1.cpp(16): E2027 Must take address of a memory location
E2027 Must take address of a memory location Compiler error
Your source file used the address-of operator (&) with an expression that can't be used that way; for example, a register variable.
是不是控件的属性是无法取得地址的?
我原来没想到会有这些问题的