Sign in to follow this  

CString IsEmpty incorrect

This topic is 4852 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
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

This topic is 4852 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this