When I build the application, there're no errors or warnings, but it crashes when I run it. I deleted the GetPrivateProfileString function call and then it works well. So there must be something wrong with my function call but I can't make out what it is.Code:char* pResult;
GetPrivateProfileString(m_strSectionName, m_strKeyName, "", pResult, 255, m_strFileName);
Please help me !