I am trying to create a CStdioFile using below code. I plan to create the file where the ".exe" is. If the folder happens to be 'read only' the file creation fails as expected but the exception shows "no error occurred"
ie. bRet is FALSE (as expected) when tried to open the file. but the szError is "no error occured" (I guess here it should be "no write permission" or something like that)
Am I doing something wrong in the code? Please help.
CHeaderCtrl* pHeader = GetHeader();
int nCount = pHeader->GetItemCount();
int nItem = nCount;
HDC hDC =dcMem.GetSafeHdc();
but the item of the headerCtrl is not increased