AnnContainer example for C++ Builder
void __fastcall TForm1::LEADRasterOLEDB1DataLoaded(TObject *Sender,
short nStatus)
{
if (nStatus == 0)
{
pRasterAnn->AnnContainer = 0;
pRasterAnn->AnnContainer = LEADRasterOLEDB1->AnnContainer;
}
else
{
if (nStatus != ERROR_FILENOTFOUND) //if it's not an empty record
ShowMessage ( "Error loading from database!") ;
}
LEADRasterView1->ForceRepaint ( ) ;
}