资源简介
vc实现的停车场管理
代码片段和文件信息
// AviCap.cpp : implementation file
//
#include “stdafx.h“
#include “ParkSys.h“
#include “AviCap.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// AviCap
CAviCap::CAviCap()
{
}
CAviCap::~CAviCap()
{
}
BOOL CAviCap::capInit(CWnd* pParentWnd int tx int ty
int bx int by int avi_WindowID
int DeviceIndex)
{
m_hWndCap = capCreateCaptureWindow((LPSTR)“Capture Window“
WS_CHILD|WS_VISIBLE
txtybxby
pParentWnd->GetSafeHwnd() avi_WindowID);
capDriverConnect(m_hWndCap DeviceIndex);
capOverlay (m_hWndCap TRUE);
if (m_hWndCap == NULL)
return FALSE;
//设置错误处理函数
capSetCallbackonerror(m_hWndCap CAviCap::ErrorCallbackProc);
return TRUE;
}
void CAviCap::capClose()
{
capOverlay(m_hWndCap 0);
capDriverDisconnect(m_hWndCap);
}
/////////////////////////////////////////////////////////////////////////////
// AviCap message handlers
// ErrorCallbackProc: error callback function
// hWnd: capture window handle
// nErrID: error code for the encountered error
// lpErrorText: error text string for the encountered error
//
LRESULT CAviCap::ErrorCallbackProc(HWND hWnd int nErrID LPSTR lpErrorText)
{
if (!hWnd)
return FALSE;
if (nErrID == 0) // Starting a new major function.
return TRUE; // Clear out old errors.
// Show the error identifier and text.
CString strMsg;
strMsg.Format(“%s。错误号:%d“ lpErrorText nErrID);
AfxMessageBox(strMsg MB_OK | MB_ICONEXCLAMATION);
return (LRESULT) TRUE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
...D..R 0 2004-04-06 10:54 SRC
...D..R 0 2004-04-06 10:54 SRC\ParkSys
文件 1775 2003-04-21 23:43 SRC\ParkSys\AviCap.cpp
文件 1301 2003-04-21 23:43 SRC\ParkSys\AviCap.h
文件 1427 2003-04-21 23:43 SRC\ParkSys\AviStatic.cpp
文件 1471 2003-04-21 23:43 SRC\ParkSys\AviStatic.h
...D..R 0 2004-03-31 15:07 SRC\ParkSys\CarBitmap
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR0.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR1.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR10.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR11.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR2.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car3.bmp
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\CAR4.BMP
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car5.bmp
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car6.bmp
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car7.bmp
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car8.bmp
文件 31554 2003-04-21 23:45 SRC\ParkSys\CarBitmap\Car9.bmp
文件 224 2003-04-21 23:45 SRC\ParkSys\CarBitmap\VSSVER.SCC
文件 153654 2003-04-21 23:43 SRC\ParkSys\CAROUT.BMP
文件 1357 2003-04-21 23:43 SRC\ParkSys\CountTime.cpp
文件 1317 2003-04-21 23:43 SRC\ParkSys\CountTime.h
文件 2338 2003-04-21 23:43 SRC\ParkSys\DlgLogin.cpp
文件 1275 2003-04-21 23:43 SRC\ParkSys\DlgLogin.h
文件 7537 2003-04-21 23:43 SRC\ParkSys\FlatToolBar.cpp
文件 944 2003-04-21 23:43 SRC\ParkSys\FlatToolBar.h
文件 1988 2003-04-21 23:43 SRC\ParkSys\InputBox.cpp
文件 1416 2003-04-21 23:43 SRC\ParkSys\InputBox.h
文件 865 2003-04-21 23:43 SRC\ParkSys\LED.CPP
............此处省略90个文件信息
评论
共有 条评论