CString sCmd=_T("");
TCHAR szPath[512]={0};
GetModuleFileName(NULL,szPath,sizeof(szPath));
m_sFile.Format(_T("%s"),szPath);
sCmd=m_sFile;
m_sFile=m_sFile.Left(m_sFile.ReverseFind('.'));
m_sFile+=_T(".ini");
//GetPrivateProfileInt
int iTime=GetPrivateProfileInt(_T("Options"),_T("DynAlloTime"),10,m_sFile.GetBuffer(0));
TCHAR szReadData;
//GetPrivateProfileString
GetPrivateProfileString(_T("Options"),_T("DynAllo"),TEXT(""),szReadData,CountArray(szReadData),m_sFile.GetBuffer(0));
TCHAR szTemp_7;
//WritePrivateProfileString
WritePrivateProfileString(_T("Options"),_T("sss"),szTemp_7,m_sFile.GetBuffer(0));
//WritePrivateProfileFloat
float fData;
WritePrivateProfileFloat("MyCpp", "Stock", fData, m_sFile.GetBuffer(0));
TCHAR szPath[512]={0};
GetModuleFileName(NULL,szPath,sizeof(szPath));
m_sFile.Format(_T("%s"),szPath);
sCmd=m_sFile;
m_sFile=m_sFile.Left(m_sFile.ReverseFind('.'));
m_sFile+=_T(".ini");
//GetPrivateProfileInt
int iTime=GetPrivateProfileInt(_T("Options"),_T("DynAlloTime"),10,m_sFile.GetBuffer(0));
TCHAR szReadData;
//GetPrivateProfileString
GetPrivateProfileString(_T("Options"),_T("DynAllo"),TEXT(""),szReadData,CountArray(szReadData),m_sFile.GetBuffer(0));
TCHAR szTemp_7;
//WritePrivateProfileString
WritePrivateProfileString(_T("Options"),_T("sss"),szTemp_7,m_sFile.GetBuffer(0));
//WritePrivateProfileFloat
float fData;
WritePrivateProfileFloat("MyCpp", "Stock", fData, m_sFile.GetBuffer(0));