www.pudn.com > sqlcommand.zip > VOConnection.h


//------------------------------------------------------------------- 
// VOConnection header file 
//------------------------------------------------------------------- 
//  
// Copyright ©2000 Virtual Office Systems Incorporated 
// All Rights Reserved                       
// 
// This code may be used in compiled form in any way you desire. This 
// file may be redistributed unmodified by any means PROVIDING it is  
// not sold for profit without the authors written consent, and  
// providing that this notice and the authors name is included. 
// 
// This code can be compiled, modified and distributed freely, providing 
// that this copyright information remains intact in the distribution. 
// 
// This code may be compiled in original or modified form in any private  
// or commercial application. 
// 
// This file is provided "as is" with no expressed or implied warranty. 
// The author accepts no liability for any damage, in any form, caused 
// by this code. Use it at your own risk. 
//------------------------------------------------------------------- 
 
#if !defined(AFX_VOCONNECTION_H__EE2E886A_8A8A_4CC8_9A48_28681F64544B__INCLUDED_) 
#define AFX_VOCONNECTION_H__EE2E886A_8A8A_4CC8_9A48_28681F64544B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include  
#include  
 
class CVOConnection   
{ 
public: 
	CVOConnection(LPCTSTR pcszProvider = NULL); 
	virtual ~CVOConnection(); 
 
	BOOL Initialize(); 
 
	operator _Connection*()	{ return m_Conn; } 
 
protected: 
	static TCHAR*		g_ProgID; 
	static CLSID		g_ClsID; 
	static BOOL			g_Init; 
 
	_Connection*		m_Conn; 
}; 
 
#endif // !defined(AFX_VOCONNECTION_H__EE2E886A_8A8A_4CC8_9A48_28681F64544B__INCLUDED_)