Code:bool Trade::ReadConfiguration() { bool bGotConfigValues = true; char sIniPath[255]; GetCurrentDirectory( sizeof(sIniPath), sIniPath ); sprintf( sIniPath,"%s\\..\\..\\%s.ini",sIniPath, INI_FILE_BASE); GetPrivateProfileString( _T(INI_FILE_SECTION), _T("UserName"), _T(""), m_szUserName, sizeof(m_szUserName), sIniPath ); GetPrivateProfileString( _T(INI_FILE_SECTION), _T("Password"), _T(""), m_szPassword, sizeof(m_szPassword), sIniPath ); GetPrivateProfileString( _T(INI_FILE_SECTION), _T("Part"), _T(""), m_szPart, sizeof(m_szPart), sIniPath ); GetPrivateProfileString( _T(INI_FILE_SECTION), _T("Server"), _T(""), m_szConnection, sizeof(m_szConnection), sIniPath );