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

📄 adomodule.h

📁 wince 下面有关ADOCE方面的库操作code!
💻 H
字号:
#ifndef _ADOMODULE_H
#define _ADOMODULE_H

//Include all the definitions of the COM objects that we need.
//This file was included with the ADOCE SDK.
#include "adoce.h"

//Needed for the COleVariant type
#include <afxdisp.h>

class ADOModule {
public:
	//Creates the module - must call initialize before using.
	ADOModule();

	//Shuts down the COM resources.
	~ADOModule();

	//CoInitializes and loads the COM resources.
	//If an error occurs here, the class is unusable.
	HRESULT				Initialize();

	//Tells whether it's safe to call getRecordSet
	BOOL				isInitialized() 
	{return (m_bInit == TRUE);}

	//Tells if the CE device is Compatible (i.e. has the proper
	//Database files and tables within the database);
	//If incoming parameter is TRUE, it will show a dialog box
	//with the results - and a record count of the tables.
	BOOL				VerifyCompatible(BOOL bShow = FALSE);

	//Fills in the String with a formatted query result
	BOOL				DoQuery(CString& strResult);


	//Return interface pointers
	IADOCEFields*		getFields()
	{return ( UpdateFields()?m_pIFields   :NULL);}

	IADOCERecordset*	getRecordSet() 
	{return (isInitialized()?m_pIRecordSet:NULL);}

private:
	//Methods
	BOOL				UpdateFields();

	//Member variables
	BOOL				m_bInit;
	CString				m_strFilePath;
	IADOCEFields*		m_pIFields;
	IADOCERecordset*	m_pIRecordSet;
};
#endif

⌨️ 快捷键说明

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