Get an exception while opening a file
-
Hi , I am using the below code for retrieving the length of a file. I have list of file names in a CStringArray object. bool Search(CString szBinName,CString szBinSize,CStringArray& arr) { int nSize = arr.GetSize(); CString str,temp; bool bRet; bRet = false; for(int i=0;i
-
Hi , I am using the below code for retrieving the length of a file. I have list of file names in a CStringArray object. bool Search(CString szBinName,CString szBinSize,CStringArray& arr) { int nSize = arr.GetSize(); CString str,temp; bool bRet; bRet = false; for(int i=0;i
I believe
CFile::shareExclusive|CFile::shareDenyNone
don't go together.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
I believe
CFile::shareExclusive|CFile::shareDenyNone
don't go together.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
I have tried putting only one of the CFile::shareExclusive|CFile::shareDenyNone , still it crashes.
What does
ex.GetErrorMessage()
give you?«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
What does
ex.GetErrorMessage()
give you?«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Hi , I am using the below code for retrieving the length of a file. I have list of file names in a CStringArray object. bool Search(CString szBinName,CString szBinSize,CStringArray& arr) { int nSize = arr.GetSize(); CString str,temp; bool bRet; bRet = false; for(int i=0;i
1. Format your code with the "pre" tags. We can't see your complete "for" statement 2. Why are you passing the file size as CString? 3. What is the value of i when it crashes?