|
-
July 7th, 2003, 04:51 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|