⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bindstatuscallback.cpp

📁 IBM的解析xml的工具Xerces的源代码
💻 CPP
字号:
/* * Copyright 1999-2000,2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* * $Log: BindStatusCallback.cpp,v $ * Revision 1.2  2004/09/08 13:55:35  peiyongz * Apache License Version 2.0 * * Revision 1.1.1.1  2002/02/01 22:21:39  peiyongz * sane_include * * Revision 1.2  2000/03/30 02:00:13  abagchi * Initial checkin of working code with Copyright Notice * */// CBindStatCallback.cpp : Implementation of BindStatusCallback#include "stdafx.h"#include "resource.h"#include "BindStatusCallback.h"#include "xml4com.h"#include "XMLDOMDocument.h"/////////////////////////////////////////////////////////////////////////////// CBindStatCallbackSTDMETHODIMP CBindStatCallback::OnStartBinding(DWORD dwReserved, IBinding *pBinding){	ATLTRACE(_T("CBindStatCallback::OnStartBinding\n"));	return S_OK;}STDMETHODIMP CBindStatCallback::GetPriority(LONG *pnPriority){	ATLTRACE(_T("CBindStatCallback::GetPriority\n"));	return E_NOTIMPL;}STDMETHODIMP CBindStatCallback::OnLowResource(DWORD reserved){	ATLTRACE(_T("CBindStatCallback::OnLowResource\n"));	return E_NOTIMPL;}STDMETHODIMP CBindStatCallback::OnProgress(ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText){	ATLTRACE(_T("CBindStatCallback::OnProgress %d %d\n"),ulProgress,ulProgressMax);	if (m_pDoc->IsAbort())		return E_ABORT; 	_bstr_t text(szStatusText);	switch (ulStatusCode) {		case BINDSTATUS_FINDINGRESOURCE:			text = _T("Finding resource ") + text;			break;		case BINDSTATUS_CONNECTING:			text = _T("Connecting ") + text;			break;		case BINDSTATUS_REDIRECTING:			text = _T("Redirecting ") + text;			break;		case BINDSTATUS_BEGINDOWNLOADDATA:			text = _T("Begin to download data ") + text;			break;		case BINDSTATUS_DOWNLOADINGDATA:			text = _T("Downloading data ") + text;			break;		case BINDSTATUS_ENDDOWNLOADDATA:			text = _T("End of downloading data ") + text;			break;		case BINDSTATUS_BEGINDOWNLOADCOMPONENTS:			text = _T("Downloading components ") + text;			break;	    case BINDSTATUS_INSTALLINGCOMPONENTS:			text = _T("Installing components ") + text;			break;	    case BINDSTATUS_ENDDOWNLOADCOMPONENTS:			text = _T("End of downloading components ") + text;			break;	    case BINDSTATUS_USINGCACHEDCOPY:			text = _T("Using cached copy ") + text;			break;	    case BINDSTATUS_SENDINGREQUEST:			text = _T("Sending request ") + text;			break;	    case BINDSTATUS_CLASSIDAVAILABLE:			text = _T("Classid available ") + text;			break;	    case BINDSTATUS_MIMETYPEAVAILABLE:			text = _T("Mime type available ") + text;			break;	    case BINDSTATUS_CACHEFILENAMEAVAILABLE:			text = _T("Cache file name available ") + text;			break;	    case BINDSTATUS_BEGINSYNCOPERATION:			text = _T("Begin sync operation ") + text;			break;	    case BINDSTATUS_ENDSYNCOPERATION:			text = _T("End of sync operation ") + text;			break;	    case BINDSTATUS_BEGINUPLOADDATA:			text = _T("Begin uploading data ") + text;			break;	    case BINDSTATUS_UPLOADINGDATA:			text = _T("Uploading data ") + text;			break;	    case BINDSTATUS_PROTOCOLCLASSID:			text = _T("Protocol classid ") + text;			break;		case BINDSTATUS_ENCODING:			text = _T("Encoding ") + text;			break;	    case BINDSTATUS_CLASSINSTALLLOCATION:			text = _T("Class intall location ") + text;			break;	    case BINDSTATUS_DECODING:			text = _T("Decoding ") + text;			break;		default:			break;	}	ATLTRACE(_T("CBindStatCallback::OnProgress %s\n"),text);		return S_OK;}STDMETHODIMP CBindStatCallback::OnStopBinding(HRESULT hresult, LPCWSTR szError){	ATLTRACE(_T("CBindStatCallback::OnStopBinding\n"));	return S_OK;}STDMETHODIMP CBindStatCallback::GetBindInfo(DWORD *pgrfBINDF, BINDINFO *pbindInfo){	ATLTRACE(_T("CBindStatCallback::GetBindInfo\n"));	return E_NOTIMPL;}STDMETHODIMP CBindStatCallback::OnDataAvailable(DWORD grfBSCF, DWORD dwSize, FORMATETC *pformatetc, STGMEDIUM *pstgmed){	ATLTRACE(_T("CBindStatCallback::OnDataAvailable\n"));	return E_NOTIMPL;}STDMETHODIMP CBindStatCallback::OnObjectAvailable(REFIID riid, IUnknown *punk){	ATLTRACE(_T("CBindStatCallback::OnObjectAvailable\n"));	return E_NOTIMPL;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -