只知道在VC与扫描仪接口中有一个Twain函数 
但是不知道怎么用
与之相关的还有什么函数
请众位指点

解决方案 »

  1.   

    这需要懂WIN32 DDK。查MSDN吧
      

  2.   

    不麻烦的。所有的扫描仪,基本上吧,都是一个驱动,一个库,那就是Twain的库,他是一个免费的东西,很好用的,可以到它的网站上下载最新的库。其他的如kodak等都是基于这个库的。
      

  3.   

    我有一段代码
    CString str,strPath,strFile[4];
    int ScanFileType[4]={3,6,8,1}; strFile[0]=".bmp";
    strFile[1]=".jpeg";
    strFile[2]=".gif";
    strFile[3]=".tif";
    UpdateData(true);
    try{
    CFileFind f;
    char chPath[100];
    GetModuleFileName(NULL, chPath, MAX_PATH);
    strPath=chPath;
    strPath=strPath.Left(strPath.ReverseFind('\\'));
    strPath=strPath+"\\fj";
    f.FindFile(strPath,0);
    if(!(f.FindFile(strPath,0)))
    CreateDirectory(strPath,NULL);//创建一个目录
    strPath=strPath+"\\"+m_filename+strFile[m_filetype]; m_scaner.SetFileType((long)ScanFileType[m_filetype]);
    m_scaner.SetImage(strPath);
    m_scaner.StartScan();
    str.Format("%d",i);
    i++;
    m_filename=m_filename+str;
    UpdateData(false);
    str="已扫描第"+str+"文件!";
    ::MessageBox(this->m_hWnd,str,"扫描文件",MB_OK); }catch (...) {
    ::MessageBox(this->m_hWnd,"扫描失败,请检查扫描仪!","扫描文件",MB_OK);
    }
      

  4.   

    请问楼主这个问题解决了吗? 我也遇到了控制扫描仪的问题,请高手再来详细解答一下呀!To:玉龙猪:在你的代码中,m_scaner是如何定义的?