You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
|
12 years ago
|
// ReadDbWriteFile.h: interface for the CReadDbWriteFile class.
|
||
|
|
//
|
||
|
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
#if !defined(AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_)
|
||
|
|
#define AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_
|
||
|
|
|
||
|
|
#if _MSC_VER > 1000
|
||
|
|
#pragma once
|
||
|
|
#endif // _MSC_VER > 1000
|
||
|
|
|
||
|
|
#ifdef BUILD_GUIDLL
|
||
|
|
#define DLLCLASS __declspec(dllexport)
|
||
|
|
#else
|
||
|
|
#define DLLCLASS __declspec(dllimport)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
class DLLCLASS CReadDbWriteFile
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
// Default constructor that will call ReadDbWriteFile()
|
||
|
|
CReadDbWriteFile(const char *ccDb, const char *ccFile, const char *ccTable,
|
||
|
|
const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);
|
||
|
|
|
||
|
|
// Destructor
|
||
|
|
virtual ~CReadDbWriteFile();
|
||
|
|
|
||
|
|
// Read all field values from database file and write to file. The keyname in file will
|
||
|
|
// correspond to field name in database.
|
||
|
|
static void ReadDbWriteFile(const char *ccDb, const char *ccFile, const char *ccTable,
|
||
|
|
const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // !defined(AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_)
|