#ifndef SQLBASE_H #define SQLBASE_H #include #include "resource.h" typedef struct { char *title; int id; } MENUITEM; typedef struct fieldStr { char *title; char *name; int x; int y; int labelWidth; int editWidth; struct fieldStr *next; } SQLFIELD; typedef struct resField { char *data; struct resField *next; } SQLRESFIELD; typedef struct resStr { SQLRESFIELD *fields; struct resStr *next; } SQLRESULT; typedef struct resLineStr { char *data; struct resLineStr *next; } RESLINE; typedef struct varStr { HINSTANCE hInst; HWND hwndMain, hwndStatus; HWND hwndMenuLine, hwndCont; HWND hwndLabel[100], hwndEdit[100]; HWND hwndSQLResWnd, hwndSQLResText; HACCEL hAccel; ACCEL *accelTable; void (*CheckExtraAccel)(WORD id, struct varStr *v); int (*GetAccelTableSize)(void); MENUITEM *extraMenuItems; char title[256]; char db[50]; char table[50]; char order[256]; char sqlCmd[4096]; SQLFIELD *fields; SQLRESULT *result; int nFields; int cxChar, cyChar; int xMax, yMax; float xScale, yScale; int lastWidth, lastHeight; BOOL sqlResWndReg; BOOL sqlCmdActive; char buf[20000]; char buf2[10000]; int rowNum, numRows; } VARS; #endif .