📄 idrive.cpp
字号:
// IDrive.cpp: implementation of the IDrive class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CallCOM.h"
#include "IDrive.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IDrive::IDrive()
{
CreateDispatch(_T("ContentCOM.IContentCOM"));
}
IDrive::~IDrive()
{
}
BOOL IDrive::StartRealTimeStream(short CardNo)
{
DISPID dispid;
unsigned short* szName = L"StartRealTimeStream";
HRESULT hresult =
m_lpDispatch->GetIDsOfNames(IID_NULL, &szName, 1, LOCALE_USER_DEFAULT, &dispid);
static BYTE params[] = VTS_I2 ;
InvokeHelper(dispid, DISPATCH_PROPERTYPUT, VT_EMPTY, (void*) NULL, params, CardNo);
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -