📄 sqlproc.h
字号:
#if !defined(AFX_SQLPROC_H__5FB06E30_6B79_4FFF_9836_1B227212D67C__INCLUDED_)
#define AFX_SQLPROC_H__5FB06E30_6B79_4FFF_9836_1B227212D67C__INCLUDED_
#ifndef REC_SYSDEF
#include "sysdef.h" // MY SYSDEF.H
#endif
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SqlProc.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSqlProc thread
class CSqlProc : public CWinThread
{
DECLARE_DYNCREATE(CSqlProc)
protected:
CSqlProc(); // protected constructor used by dynamic creation
// Attributes
public:
CDatabase m_database;
void GetZgFromFile();
BOOL m_dbok;
void exesql(char* sql);
BOOL connectdb();
void releaselink(MEMZGB *fnod);
BOOL GetZgFromSQL();
SQLHANDLE hOdbcStmt;
long x;
SQLRETURN ret;
HWND mainwnd;
// Operations
public:
BOOL m_restored;
BOOL m_DBRecovered;
void RestoreTempData(CString strfn);
void PostMsg(char* msg);
long curpos;
void WriteSqlToFile(char * strsql);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSqlProc)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
//static VOID __stdcall ScanDatabase(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime);
// Implementation
protected:
virtual ~CSqlProc();
void OnTimer();
// Generated message map functions
//{{AFX_MSG(CSqlProc)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
LRESULT OnExeSql( WPARAM wParam,LPARAM lParam );
LRESULT OnKillThread( WPARAM wParam,LPARAM lParam );
LRESULT OnGetFtpQueue(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SQLPROC_H__5FB06E30_6B79_4FFF_9836_1B227212D67C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -