DTwainSource::IsValid |
Top Previous Next |
Syntax bool DTwainSource::IsValid( ) const;
Return Value Returns true if the DTwainSource is valid, false otherwise.
This function can be used to determine if a Source was selected by the user. .
Example
#include <cdtwain.h> #include <iostream>
using namespace DTWAIN; using namespace std;
int main( ) { DTwainInterface TI( NULL, NULL ); DTwainSource Source = DTwainSource::Select( ); if ( Source.IsValid( ) ) cout << "User Selected the source" << endl; else cout << "User Cancelled selection of source" << endl; }
|