How to initialize the Canvas object?


2003-07-16 03:18:29 AM
cppbuilder24
I declare in the global vars my Canvas object.
after i call this in a function:
pCanvas->Pen->Color = clBlack;
but i get an error when i run the application
maybe i must initialize the canvas before, how?
It must be empy before pMapCanvasM->Pen->Color = clBlack;
Tnx