|
//---------------------------------------------------------------------------
#ifndef CommonFunctionH #define CommonFunctionH
#include "IniFiles.hpp" //---------------------------------------------------------------------------
class IniFile { private: AnsiString Host;
public:
int getHost(String execpath); };
#endif
#include <vcl.h> #pragma hdrstop
#include "CommonFunction.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
int IniFile::getHost(String execpath) { TIniFile *IniFile = new TIniFile(execpath); Host = IniFile->ReadString("LoginSection", "Host", "127.0.0.1"); delete IniFile;
return 0; }
위에서 굵게 표시한 부분처럼 수정해 보세요.
|