?? adomodule.h
字號(hào):
#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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -