资源简介

C++ VC6.0 MFC 调用 twain 接口采集图像

资源截图

代码片段和文件信息

// CTwain.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “CTwain.h“
#include “CTwainDlg.h“
#include “DIB.h“
#include “INI.h“


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCTwainApp

BEGIN_MESSAGE_MAP(CCTwainApp CWinApp)
//{{AFX_MSG_MAP(CCTwainApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCTwainApp construction

CCTwainApp::CCTwainApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CCTwainApp object

CCTwainApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCTwainApp initialization

BOOL CCTwainApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CCTwainDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20680  2013-09-10 16:41  CTwain\CTwain.aps

     文件       1075  2013-09-10 16:46  CTwain\CTwain.clw

     文件       2101  2013-10-28 15:19  CTwain\CTwain.cpp

     文件       4420  2013-05-08 10:05  CTwain\CTwain.dsp

     文件        537  2013-05-07 17:11  CTwain\CTwain.dsw

     文件       1324  2013-05-07 17:11  CTwain\CTwain.h

     文件     156672  2013-10-09 17:23  CTwain\CTwain.ncb

     文件     477184  2013-10-09 17:23  CTwain\CTwain.opt

     文件        246  2013-10-09 16:21  CTwain\CTwain.plg

     文件       5196  2013-05-08 09:08  CTwain\CTwain.rc

     文件      16509  2013-10-28 15:20  CTwain\CTwainDlg.cpp

     文件       3408  2013-05-08 09:46  CTwain\CTwainDlg.h

     文件         30  2013-08-29 17:29  CTwain\Debug\cpi.ini

     文件     131145  2013-09-23 16:43  CTwain\Debug\CTwain.exe

     文件     322432  2013-09-23 16:43  CTwain\Debug\CTwain.ilk

     文件      14930  2013-08-29 17:28  CTwain\Debug\CTwain.obj

     文件    5493084  2013-05-08 09:04  CTwain\Debug\CTwain.pch

     文件     484352  2013-09-23 16:43  CTwain\Debug\CTwain.pdb

     文件      14543  2013-09-23 16:44  CTwain\Debug\CTwain.rar

     文件       2484  2013-05-08 09:08  CTwain\Debug\CTwain.res

     文件      61200  2013-09-23 16:43  CTwain\Debug\CTwainDlg.obj

     文件      58935  2013-05-08 09:04  CTwain\Debug\DIB.obj

     文件      16597  2013-08-29 17:28  CTwain\Debug\ini.obj

     文件     105883  2013-05-08 09:04  CTwain\Debug\StdAfx.obj

     文件   14536171  2013-09-23 16:43  CTwain\Debug\twain.rar

     文件     222208  2013-10-09 16:21  CTwain\Debug\vc60.idb

     文件     372736  2013-09-23 16:43  CTwain\Debug\vc60.pdb

     文件      20520  2013-10-28 15:19  CTwain\DIB.cpp

     文件       3095  2013-05-06 10:32  CTwain\DIB.h

     文件       2953  2013-10-28 15:20  CTwain\ini.cpp

............此处省略17个文件信息

评论

共有 条评论