CString crashes in procedure
Hello,
I' pretty good at API but I got lost in an MFC-Problem with CString in one of my prodedures:
At return I get an exception. (Somethging about an assert in StringT)
I will show you the general setting:
BOOL Funtion (Param1, Param2, CString ShortDesc, CString Desc)
{
BOOL retval = FALSE;
CString FilePath;
CString DirectoryPath;
.....
Opening a File and storing the Data
.....
return retval; // <--- Here the crash occurs
}
Has anybody got an idea why this might happen?
And if its of relevance: I use some of CStrings methods to create a DirectoryPath from FilePath.
Do I have to use new or delete or something?
Hope you can help me!
Thanks!
Horst
Re: CString crashes in procedure
Quote:
Originally posted by Horst
....
(Somethging about an assert in StringT)
....
I use some of CStrings methods
then make SOME code changes and it will be fixed!
be more specific, man!