textcopy.h

来自「本代码展示了使用DB_LIB库对SQL SERVER的连接和各种操作的实例。」· C头文件 代码 · 共 28 行

H
28
字号
/***********************************************************************
Copyright (c) 2000, Microsoft Corporation
All Rights Reserved.
***********************************************************************/
////////////////////////////////////////////////////////////////////////
//
//  FILE: textcopy.h
//              
//      Header for text and image copy application
//
//  COMMENTS:
//
////////////////////////////////////////////////////////////////////////

// function prototypes
int Cleanup (PDBPROCESS);
extern "C" int ErrorHandler (PDBPROCESS, INT, INT, INT, LPCSTR, LPCSTR);
extern "C" int MessageHandler (PDBPROCESS, DBINT, INT, INT, LPCSTR, LPCSTR, LPCSTR, DBUSMALLINT);
int DisplayUsage (void);

#define D(a) if (bDebug) { cout << dbg; (a); }

const char* const err = "ERROR: ";
const char* const dbg = "  debug: ";

inline void cinstr (CString& s, int n) { cin.getline (s.GetBuffer (n), n); s.ReleaseBuffer(); };
inline void cinstr (CString& s) { cin.getline (s.GetBuffer (100), 100); s.ReleaseBuffer(); };

⌨️ 快捷键说明

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