To answer your question about why you get a different error when running the code in c++ vs. running it in Java, it's because your c++ debugger does more work for you; it is certainly not intrinsic...
Type: Posts; User: siegelp
To answer your question about why you get a different error when running the code in c++ vs. running it in Java, it's because your c++ debugger does more work for you; it is certainly not intrinsic...
All good to know! Thanks a lot for your help.
-Paul
There must be something wrong with your compiler. Your first example is perfectly fine C++ code; the variable i loses scope as soon as the for loop terminates. Try running it again.
Thanks, dynamic_cast looks like exactly what I was looking for.
Regarding your other comments:
I would not actually create buttons that way; in the program I am working on all of the panels are...
I'll give an example to illustrate what I want to do:
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent*...
That worked perfectly, thanks. It seems like a pretty bad implementation of that feature on the part of Borland, though, mainly because it's a bit of a departure frome the rest of the framework and...
Hi,
I just wanted to know how to change the font style of a control in C++ Builder on the fly. For example, suppose that the following occurs:
TPanel* Panel;
Panel = new TPanel(Form1);
...