ExtractMessage example for C++ Builder
void __fastcall TForm1::ExtractMessageClick(TObject *Sender)
{
L_INT nRet;
AnsiString strMsg;
AnsiString strPassword;
AnsiString strFileName;
AnsiString strDirectory;
TPoint ptStart;
nRet= LEADImage1->ExtractMessage( strMsg, strPassword, strFileName, strDirectory, ptStart );
/*Check if the extracted message is a text or file */
if ( nRet == SUCCESS )
{
MessageBox ( Handle, strMsg.c_str(), "Extracted Message", MB_OK );
}
else
MessageBox ( Handle, "No message", "Error", MB_OK );
}