资源简介
vc6.0编写的usbhid通信的上位机
venderID=0x0483; //与单片机的厂商号,设备号 对应productID=0x5750;
只能在代码中更改!
具体可查看文件中的readme.doc。

代码片段和文件信息
// DlgProxy.cpp : implementation file
//
#include “stdafx.h“
#include “UsbPort.h“
#include “DlgProxy.h“
#include “UsbPortDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUsbPortDlgAutoProxy
IMPLEMENT_DYNCREATE(CUsbPortDlgAutoProxy CCmdTarget)
CUsbPortDlgAutoProxy::CUsbPortDlgAutoProxy()
{
EnableAutomation();
// To keep the application running as long as an automation
// object is active the constructor calls AfxOleLockApp.
AfxOleLockApp();
// Get access to the dialog through the application‘s
// main window pointer. Set the proxy‘s internal pointer
// to point to the dialog and set the dialog‘s back pointer to
// this proxy.
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CUsbPortDlg AfxGetApp()->m_pMainWnd);
m_pDialog = (CUsbPortDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CUsbPortDlgAutoProxy::~CUsbPortDlgAutoProxy()
{
// To terminate the application when all objects created with
// with automation the destructor calls AfxOleUnlockApp.
// Among other things this will destroy the main dialog
if (m_pDialog != NULL)
m_pDialog->m_pAutoProxy = NULL;
AfxOleUnlockApp();
}
void CUsbPortDlgAutoProxy::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CCmdTarget::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CUsbPortDlgAutoProxy CCmdTarget)
//{{AFX_MSG_MAP(CUsbPortDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CUsbPortDlgAutoProxy CCmdTarget)
//{{AFX_DISPATCH_MAP(CUsbPortDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IUsbPort to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {68C7D0FF-B39F-4082-A50B-0F1837EF1717}
static const IID IID_IUsbPort =
{ 0x68c7d0ff 0xb39f 0x4082 { 0xa5 0xb 0xf 0x18 0x37 0xef 0x17 0x17 } };
BEGIN_INTERFACE_MAP(CUsbPortDlgAutoProxy CCmdTarget)
INTERFACE_PART(CUsbPortDlgAutoProxy IID_IUsbPort Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {EEF09E21-D13D-4E5A-B323-7387A374843E}
IMPLEMENT_OLECREATE2(CUsbPortDlgAutoProxy “UsbPort.Application“ 0xeef09e21 0xd13d 0x4e5a 0xb3 0x23 0x73 0x87 0xa3 0x74 0x84 0x3e)
/////////////////////////////////////////////////////////////////////////////
// CUsbPortDlgAutoProxy message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6381 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\ba
文件 20306 2013-10-18 11:10 vcMfcUsbPort完整上位机源码\Debug\DlgProxy.obj
文件 0 2013-10-18 11:10 vcMfcUsbPort完整上位机源码\Debug\DlgProxy.sbr
文件 105328 2013-09-29 13:55 vcMfcUsbPort完整上位机源码\Debug\StdAfx.obj
文件 1366524 2013-09-29 13:55 vcMfcUsbPort完整上位机源码\Debug\StdAfx.sbr
文件 3818496 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPort.bsc
文件 118838 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPort.exe
文件 307032 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPort.ilk
文件 12762 2013-10-18 11:10 vcMfcUsbPort完整上位机源码\Debug\UsbPort.obj
文件 6941528 2013-09-29 13:55 vcMfcUsbPort完整上位机源码\Debug\UsbPort.pch
文件 443392 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPort.pdb
文件 2852 2013-10-18 10:05 vcMfcUsbPort完整上位机源码\Debug\UsbPort.res
文件 0 2013-10-18 11:10 vcMfcUsbPort完整上位机源码\Debug\UsbPort.sbr
文件 1476 2013-10-18 11:10 vcMfcUsbPort完整上位机源码\Debug\UsbPort.tlb
文件 48678 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPortDlg.obj
文件 0 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\UsbPortDlg.sbr
文件 214016 2013-10-21 21:19 vcMfcUsbPort完整上位机源码\Debug\vc60.idb
文件 389120 2013-10-18 16:26 vcMfcUsbPort完整上位机源码\Debug\vc60.pdb
文件 2988 2013-09-29 09:02 vcMfcUsbPort完整上位机源码\DlgProxy.cpp
文件 1650 2013-09-29 09:02 vcMfcUsbPort完整上位机源码\DlgProxy.h
文件 12384 2001-08-17 12:39 vcMfcUsbPort完整上位机源码\HID\hid.lib
文件 11028 2001-08-17 14:12 vcMfcUsbPort完整上位机源码\HID\hidusage.h
文件 141048 2001-07-21 18:48 vcMfcUsbPort完整上位机源码\HID\setupapi.lib
文件 11394 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hid.lib
文件 4224 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidclass.h
文件 1766 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidclass.lib
文件 9212 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidparse.lib
文件 9500 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidpddi.h
文件 80537 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidpi.h
文件 12126 2006-09-13 08:55 vcMfcUsbPort完整上位机源码\hidsdi.h
............此处省略32个文件信息
- 上一篇:RFID读写器的程序
- 下一篇:傅里叶变换研究|C++源码|带通滤波器
相关资源
- QT上位机
- QT实现USB摄像头拍照
- usb键盘(MyUSB_HID_KEIL)
- usb之CDC(CDC_Standalone.rar)
- Linux那些事儿之我是USB core
- USB CAN Tool 源代码(LabVIEW 2011环境)
- VC6 USB开发源码
- stm32f103 USB键盘
- qt上位机采集51单片机温湿度数据
- c++监控USB插拔状态源码
- NFC_上位机
- USB识别 HID识别 MFC代码
- USB 完整bootloader项目,包括底层驱动和
- USB2.0接口数据采集卡
- 基于VC MFC的数据分析系统
- VC++6.0 MFC串口编程上位机程序代码.
- 基于C++的虚拟串口通讯
- USB双向通信上位机VC++程序
- hid usb 编程源码
- 简易的心电采集电路,包括下位机编
- 串口读写上位机例程
- 用C语言实现PLC和上位机的串行通信
- LPC1768IAP+MFC上位机+bootloader+app
- 基于CY7C68013A的USB2.0详细开发文档
- VC++上位机API编程转
- USB视频设备采集图像VisualC++程序
- 基于C++的USB的数据传输的上位机程序
- vc上位机详解
- C++Builder 串口通信调试
- 真正的usbview源代码
评论
共有 条评论