|
Available in the LEADTOOLS Imaging toolkit. |
AcquireSourceName Example for C++ 5.0 and later
void CDuplexDlg::SetSourceName (CString Source) { ILEADRasterTwain_U * pltRasTwain; CoCreateInstance( CLSID_LEADRasterTwain_U, NULL, CLSCTX_ALL, IID_ILEADRasterTwain_U, (void**)&pltRasTwain); pltRasTwain->InitSession ((long)GetSafeHwnd()); pltRasTwain->put_AcquireSourceName(Source.AllocSysString()); short iRet = pltRasTwain->Acquire(L_LTWAIN_SHOW_USER_INTERFACE); if (iRet != 0) MessageBox (TEXT("Error acquiring from source")); }