- May
- 13,211
- 180
Would you please put these in TakeCmd.h?
And adding "const" to the declaration of TccKeyWords[] seems to stop errors like this:
Code:
typedef struct {
int nKey; // key entered
int nHomeRow; // start row
int nHomeColumn; // start column
int nRow; // current row in window
int nColumn; // current column in window
LPTSTR pszLine; // command line
LPTSTR pszCurrent; // pointer to position in line
int fRedraw; // if != 0, redraw the line
} KEYINFO, *LPKEYINFO;
typedef struct {
WCHAR *pszDll; // name of the DLL
WCHAR *pszAuthor; // author's name
WCHAR *pszEmail; // author's email
WCHAR *pszWWW; // author's web page
WCHAR *pszDescription; // (brief) description of plugin
WCHAR *pszFunctions; // command, _variable, @function
int nMajor; // plugin's major version #
int nMinor; // plugin's minor version #
int nBuild; // plugin's build #
HMODULE hModule; // module handle
WCHAR *pszModule;
} PLUGININFO, *LPPLUGININFO;
int WINAPI TCError(int nErrorCode, LPCTSTR pszArg);
And adding "const" to the declaration of TccKeyWords[] seems to stop errors like this:
Code:
resize.obj : error LNK2005: "char * TccKeyWords" (?TccKeyWords@@3PADA) already defined in 4utils.obj