MechanicalBoy
Technical User
I realize that the condition:
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]"
;
is incorrectly written [or upside down
] ( '!=' replace '==' )
Im my application i needs to create & delete images during runtime. I've been told that every visible object on the form must be declared within __published: section.
But i declared poiter to TImage as a global in Unit1.cpp.
TImage *IMG;
I hope that the procedure of creating new Image is good becouse IMG = new TImage(this) has never returned NULL pointer.
Thanks for help again.
RafalP.
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]"
is incorrectly written [or upside down
Im my application i needs to create & delete images during runtime. I've been told that every visible object on the form must be declared within __published: section.
But i declared poiter to TImage as a global in Unit1.cpp.
TImage *IMG;
I hope that the procedure of creating new Image is good becouse IMG = new TImage(this) has never returned NULL pointer.
Thanks for help again.
RafalP.