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

📄 ivisreg.h

📁 vc++与visio 安装VISIO office(推荐2003以上版本)必须安装visio office 否则程序无法运行 安装VisioSDK(推荐2003以上版本) 默认安装路径为<
💻 H
字号:
//	IVISREG.H - Helper functions for starting Visio
//	Copyright (C) Microsoft Corporation. All rights reserved.
//
//	<summary>
//	This header file contains helper functions for launching 
//	the Visio application.
//	</summary>
//

#ifndef _IVISREG_H
#define _IVISREG_H

//	Definition of IVApplication
//
#ifndef __Visio_h__
#include "Visio.h"
#endif

//	Result codes for vaoGetVisio and vaoGetObject
//
#define VAO_ERROR			0	//	An error occured
#define VAO_SUCCESS			1	//	Success
#define VAO_GET				2	//	Returned interface pointer is the active Visio
#define VAO_CREATE			3	//	Returned interface pointer is a newly created Visio
#define VAO_BAD_VERSION		4	//	Failure - wrong version of Visio (unused)
#define VAO_NOT_RUNNING		5	//	Failure - Visio was not running
#define VAO_NOT_INSTALLED	6	//	Failure - Visio was not installed (unused)

//	Function Prototypes
//
#ifdef __cplusplus
extern "C" {
#endif

//	vaoGetObject - Get a Visio Application object
//
//	<summary>
//	This function tries to get a Visio Application object (either the
//	running Visio or by launching a new instance of Visio)
//	</summary>
//
//	Return Value:
//	short - An result code defined above
//
short vaoGetObject(						//	VAO_ result code
	IVApplication **);					//	Visio App Interface

//	vaoGetVisio - Get a Visio Application object
//
//	<summary>
//	This function tries to get a Visio Application object.  You can specify
//	whether to attach to a running Visio or to launch a new instance
//	</summary>
//
//	Return Value:
//	short - An result code defined above
//
short vaoGetVisio(						//	VAO_ result code
	BOOL,								//	TRUE => Get Active
	BOOL,								//	TRUE => Create New
	IVApplication **);					//	Application Interface

//	vaoGetLastError - Returns the last error encountered by the code in
//	Ivisreg.cpp
//
//	<summary>
//	This function returns the last error encountered by the code in ivisreg.cpp
//	</summary>
//
//	Return Value:
//	HRESULT - NOERROR or some HRESULT error code
//
HRESULT vaoGetLastError();

#ifdef __cplusplus
}
#endif

#endif	//	_IVISREG_H

⌨️ 快捷键说明

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