Problem with CString
-
Hi All I am making a dialog based application using MFC. I have written a function which is as follows: Function(CString strPath) { CString strTempPath; strTempath = strPath; } Now when i debug this function then as soon as control passes line "strTempath = strPath;" It causes UNHANDELED EXCEPTION ERROR. Why it is happening? Please reply. Thanks
-
Hi All I am making a dialog based application using MFC. I have written a function which is as follows: Function(CString strPath) { CString strTempPath; strTempath = strPath; } Now when i debug this function then as soon as control passes line "strTempath = strPath;" It causes UNHANDELED EXCEPTION ERROR. Why it is happening? Please reply. Thanks
rajeevktripathi wrote: Function(CString strPath) { CString strTempPath; strTempath = strPath; } Could you show me your actual coding and what actual value coming in strPath.. OT: try to follow nominal Variable naming convention while coding
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Hi All I am making a dialog based application using MFC. I have written a function which is as follows: Function(CString strPath) { CString strTempPath; strTempath = strPath; } Now when i debug this function then as soon as control passes line "strTempath = strPath;" It causes UNHANDELED EXCEPTION ERROR. Why it is happening? Please reply. Thanks
Can you tell wots the exact error message. I feel your memory was already corrupted some time before it reached the Function(), but unfortunately its showing only from Function().
suhredayan
There is no spoon. -
Hi All I am making a dialog based application using MFC. I have written a function which is as follows: Function(CString strPath) { CString strTempPath; strTempath = strPath; } Now when i debug this function then as soon as control passes line "strTempath = strPath;" It causes UNHANDELED EXCEPTION ERROR. Why it is happening? Please reply. Thanks
You better rebuild the application again.. It might help.. :) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan