• Advertisement
Sign in to follow this  

CString IsEmpty incorrect

This topic is 4923 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im using fscanf to read a string into a Cstring object and although the debug window shows the string in there, both IsEmpty and GetLength functions are giving wrong results. I have initialised the CString with .Empty() even. Any ideas would be much appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Is fscanf a method of CString or are you talking about the plain C function? Because I'm thinking if you're using dirty tricks to read something into a CString object then you can't expect the class to NOT get confused.

Share this post


Link to post
Share on other sites
Sorry, I'm really out of the loop as far as MFC is concerned, so I don't actually know what method you'd have to use instead. :(

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement