Click here to Skip to main content
15,896,606 members
Articles / Desktop Programming / MFC

The alxBase classes for work with DBF files

Rate me:
Please Sign up or sign in to vote.
5.00/5 (22 votes)
5 Nov 20021 min read 364.5K   3.8K   57  
The alxBase classes for work with dbf files.
//
// DBFNAVIGATOR.RC2 - resources Microsoft Visual C++ does not edit directly
//

#ifdef APSTUDIO_INVOKED
	#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...

#include "DBFException.h"
#include "ALXParserException.h"

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
/*
STRINGTABLE DISCARDABLE 
BEGIN
    ALX_DBF_ERROR_DBFILE_CREATE		"Can't create file."
    ALX_DBF_ERROR_DBFILE_OPEN		"Can't open file."
    ALX_DBF_ERROR_DBFILE_MEMORYLOAD	"Can't load file."
    ALX_DBF_ERROR_DBFHEADER_READ	"Read head file error."
    ALX_DBF_ERROR_DBFHEADER_WRITE	"Write head file error."
    ALX_DBF_ERROR_NOT_TABLE			"File destruct or not .dbf file. "
    ALX_DBF_ERROR_NOT_FIELDS		"Not fields."
    ALX_DBF_ERROR_FILE_SIZE			"File size error."
    ALX_DBF_ERROR_FIELDS_READ		"Record read error."
    ALX_DBF_ERROR_MEMO_OPEN			"Can't open memo file."
    ALX_DBF_ERROR_MEMO_HEAD_READ	"File head error. This format not support."
    ALX_DBF_ERROR_MEMO_BLOCK_SIZE	"Memo head block size error."
    ALX_DBF_ERROR_MEMO_FIELD_READ	"Invalid ref from memo."
    ALX_DBF_ERROR_MEMO_RECORD_READ	"Read error from memo file."
    ALX_DBF_ERROR_RECORD_OUTOFRANGE	"Out of range."
    ALX_DBF_ERROR_RECORD_READ		"Read record error."
    ALX_DBF_ERROR_RECORD_WRITE		"Save record error."
END

STRINGTABLE DISCARDABLE 
BEGIN
	ALX_PRS_ERROR_SYNTAX_ERROR			"Syntax error ""%s""."
	ALX_PRS_ERROR_MISSING				"Missing '%c'."
	ALX_PRS_ERROR_DATATYPE_MISMATCH		"Date type mismatch."
	ALX_PRS_ERROR_OPERAND_MISMATCH		"Operator/operand type mismatch."
	ALX_PRS_ERROR_ARGTYPE_MISMATCH		"Function %s(), argument %d type mismatch."
	ALX_PRS_ERROR_VARIABLE_NOT_FOUND	"Variable '%s' is not found."
	ALX_PRS_ERROR_FUNCTION_NOT_FOUND	"Function %s() is not implemented."
	ALX_PRS_ERROR_TOO_FEW_ARGUMENTS		"Too few arguments for function %s()."
	ALX_PRS_ERROR_TOO_MANY_ARGUMENTS	"Too many arguments for function %s()."
	ALX_PRS_ERROR_INVALID_ARGUMENT		"Function argument value or type is invalid."
	ALX_PRS_ERROR_INVALID_ARGUMENT_SQRT	"SQRT(), argument cannot be negative."
	ALX_PRS_ERROR_INVALID_ARGUMENT_LOG	"LOG(): Zero or negative used as argument."
	ALX_PRS_ERROR_INVALID_ARGUMENT_LOG10 "Cannot use 0 or negative as the argument for LOG10();"
	ALX_PRS_ERROR_INVALID_ARGUMENT_CTOT	"CTOD() or CTOT() can procedure incorect result."
	ALX_PRS_ERROR_DEVIDE_BY_ZERO		"Cannot devide by 0."
	ALX_PRS_ERROR_EXP_DOMAIN_ERROR		"** or ^ domain error."
	ALX_PRS_ERROR_MISSING_OPERAND		"Missing operand."
	ALX_PRS_ERROR_FUNCTION_MISSING		"Function %s() is missing ')'."
	ALX_PRS_ERROR_MISSING_EXPR			"Missing expression."
	ALX_PRS_ERROR_MISSING_OPERATOR		"Missing operator."
END
*/
#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
// Russian resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
#ifdef _WIN32
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#pragma code_page(1251)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
/*
STRINGTABLE DISCARDABLE 
BEGIN
    ALX_DBF_ERROR_DBFILE_CREATE		"�� ������� ������� ����."
    ALX_DBF_ERROR_DBFILE_OPEN		"�� ������� ������� ����."
    ALX_DBF_ERROR_DBFILE_MEMORYLOAD	"�� ������� ��������� ����."
    ALX_DBF_ERROR_DBFHEADER_READ	"������ ��� ������ ��������� �����."
    ALX_DBF_ERROR_DBFHEADER_WRITE	"������ ��� ������ ��������� �����."
    ALX_DBF_ERROR_NOT_TABLE			"���� ��������� ���� �� �������� .dbf ������. "
    ALX_DBF_ERROR_NOT_FIELDS		"���� �� �������� �������� �����."
    ALX_DBF_ERROR_FILE_SIZE			"������ ����� �� ������������� ��������� �����."
    ALX_DBF_ERROR_FIELDS_READ		"������ ������ ������."
    ALX_DBF_ERROR_MEMO_OPEN			"�� ������� ������� ���� ����."
    ALX_DBF_ERROR_MEMO_HEAD_READ	"��������� ����� ��������� ���� ����� ����������� ������."
    ALX_DBF_ERROR_MEMO_BLOCK_SIZE	"��������� ���� ����� ��������� ���� �� ����� ������ ������ �����."
    ALX_DBF_ERROR_MEMO_FIELD_READ	"�� ������ ������ � ���� ����."
    ALX_DBF_ERROR_MEMO_RECORD_READ	"������ ��� ������ ������ �� ���� �����."
    ALX_DBF_ERROR_RECORD_OUTOFRANGE	"������� �������� ������ ����������� �� �������� �����."
    ALX_DBF_ERROR_RECORD_READ		"������ ��� ������ ������."
    ALX_DBF_ERROR_RECORD_WRITE		"������ ��� ���������� ������ � ����."
END

STRINGTABLE DISCARDABLE 
BEGIN
	ALX_PRS_ERROR_SYNTAX_ERROR			"�������������� ������ ""%s""."
	ALX_PRS_ERROR_MISSING				"����������� '%c'."
	ALX_PRS_ERROR_DATATYPE_MISMATCH		"�� ������������ �����."
	ALX_PRS_ERROR_OPERAND_MISMATCH		"�� ������������ ����� ���������/��������."
	ALX_PRS_ERROR_ARGTYPE_MISMATCH		"������� %s(), �������� %d - �� ������������ ����."
	ALX_PRS_ERROR_VARIABLE_NOT_FOUND	"���������� '%s' �� �������."
	ALX_PRS_ERROR_FUNCTION_NOT_FOUND	"������� %s() �� �����������."
	ALX_PRS_ERROR_TOO_FEW_ARGUMENTS		"�� ���������� ���������� ��� ������� %s()."
	ALX_PRS_ERROR_TOO_MANY_ARGUMENTS	"������� ����� ���������� � ������� %s()."
	ALX_PRS_ERROR_INVALID_ARGUMENT		"������������ �������� ��� ��� ��������� �������."
	ALX_PRS_ERROR_INVALID_ARGUMENT_SQRT	"SQRT(), �������� �� ����� ���� �������������."
	ALX_PRS_ERROR_INVALID_ARGUMENT_LOG	"LOG(): ���� ��� ������������� ����� ���� ������������."
	ALX_PRS_ERROR_INVALID_ARGUMENT_LOG10 "������ ������������ 0 ��� ������������� ����� � LOG10();"
	ALX_PRS_ERROR_INVALID_ARGUMENT_CTOT	"CTOD() ��� CTOT() �� ��������� ���������."
	ALX_PRS_ERROR_DEVIDE_BY_ZERO		"������ ������ �� 0."
	ALX_PRS_ERROR_EXP_DOMAIN_ERROR		"** ��� ^ ������."
	ALX_PRS_ERROR_MISSING_OPERAND		"����������� �������."
	ALX_PRS_ERROR_FUNCTION_MISSING		"� ������� %s() ����������� ')'."
	ALX_PRS_ERROR_MISSING_EXPR			"����������� ���������."
	ALX_PRS_ERROR_MISSING_OPERATOR		"����������� ��������."
END
*/
#endif    // Russian resources
/////////////////////////////////////////////////////////////////////////////

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
Year of birth - 1974.
Eeducation - was ended by Kaliningrad State University in 1997.
Now I work as the engineer-programmer in Kaliningrad (RUSSIA).

Comments and Discussions