本文整理汇总了C++中CChannel::SendFax方法的典型用法代码示例。如果您正苦于以下问题:C++ CChannel::SendFax方法的具体用法?C++ CChannel::SendFax怎么用?C++ CChannel::SendFax使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CChannel
的用法示例。
在下文中一共展示了CChannel::SendFax方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetFxByte_cmplt
struct state* CMailChannel::GetFxByte_cmplt(EVTBLK *evtblk)
{
int nChan = evtblk->nReference;
if ( evtblk->wEventCode == E_PROC_PlayEnd )
{
CChannel* pChannel = Network.FindChannel( m_nTaskId );
if ( ! pChannel ) throw "Invalid channel";
_variant_t TheValue = m_pRecordset->GetCollect( "xfaxpath" );
pChannel->SendFax( (LPCTSTR)(_bstr_t)TheValue, NULL );
}
if ( evtblk->wEventCode == E_CHG_FaxPages && m_pRecordset != NULL )
{
m_pRecordset->PutCollect( "xstate", _variant_t("1") );
COleDateTime tt = COleDateTime::GetCurrentTime();
m_pRecordset->PutCollect( "xsenddate", _variant_t(tt) );
m_pRecordset->Update();
for ( m_pRecordset->MoveNext(); !m_pRecordset->adoEOF; m_pRecordset->MoveNext() )
{
CChannel* pChannel = Network.FindChannel( m_nTaskId );
if ( ! pChannel ) throw "Invalid channel";
_variant_t TheValue = m_pRecordset->GetCollect( "xfaxpath" );
pChannel->SendFax( (LPCTSTR)(_bstr_t)TheValue, NULL, TRUE );
m_pRecordset->PutCollect( "xstate", _variant_t("1") );
COleDateTime tt = COleDateTime::GetCurrentTime();
m_pRecordset->PutCollect( "xsenddate", _variant_t(tt) );
m_pRecordset->Update();
}
}
return ChkDTSignal( evtblk, &GetFxByte );
}