Acquire Example for C++ 5.0 and later
short iRet;
long lSize;
ILEADRasterTwain *pltRasTwain;
// m_ltRasView is a variable connected to a RasterView control
// created.
CLEADRasterView m_ltRasView;
pltRasTwain->put_FileTransferName (CString("c:\\twain.bmp").AllocSysString());
pltRasTwain->get_MemBufSize(&lSize);
iRet = pltRasTwain-> Acquire(L_LTWAIN_SHOW_USER_INTERFACE);
if (iRet != 0)
MessageBox (TEXT("Error Acquiring From Source"));