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

📄 lobexampledlg.h

📁 oracle 的 blob大字段类型操作例子
💻 H
字号:
// LOBExampleDlg.h : header file
//
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES

#if !defined(AFX_LOBEXAMPLEDLG_H__D1050A92_34CF_4A36_9A5F_B1A77371E251__INCLUDED_)
#define AFX_LOBEXAMPLEDLG_H__D1050A92_34CF_4A36_9A5F_B1A77371E251__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


/////////////////////////////////////////////////////////////////////////////
// CLOBExampleDlg dialog

class CLOBExampleDlg : public CDialog
{
// Construction
public:
	CLOBExampleDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CLOBExampleDlg)
	enum { IDD = IDD_LOBEXAMPLE_DIALOG };
	CString		m_strFilename;
	int			m_ID;
	CMSFlexGrid	m_grid;
	int			m_style;
	CString	m_stroutfilename;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLOBExampleDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	OCIEnv *envhp;			//环境句柄
	OCIError *errhp;		//错误句柄
	OCIServer *srvhp;		//服务器句柄
	OCISvcCtx *svchp;		//服务环境句柄
	OCISession *authp;		//会话句柄
	OCIStmt *stmthp;		//语句句柄
	OCIDefine *defhp;		//定义句柄
	OCILobLocator *lob_loc;	//LOB定位符
	OCIBind *bndhp,*bndhp2;	//结合句柄

	sword status;           //函数执行状态
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CLOBExampleDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonReadlob();
	afx_msg void OnButtonBrowse();
	afx_msg void OnButtonAdd();
	afx_msg void OnRadioPolling();
	afx_msg void OnRadioCallback();
	afx_msg void OnButtonOut();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Init_Grid();
	void GetRecordCounts();
	void Init_OCI();
	int nRecordCounts;
	void CallbackReadLob();
	void PollingReadLob();
	void logoff();
	int CallbackWriteToLob();
	void Error_proc(dvoid *errhp, sword status);
	int PollingWriteToLob();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LOBEXAMPLEDLG_H__D1050A92_34CF_4A36_9A5F_B1A77371E251__INCLUDED_)

⌨️ 快捷键说明

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