Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

CString IsEmpty incorrect

Started by pixienick Sep 1, 2004 at 4:44 AM 3 replies 2.2k views
Original Post
pixienick
pixienick
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.
Red Ant
Red Ant
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.
pixienick
pixienick
Yeah im using the c function. Is that like bad play is it? Can you suggest anything else?
Red Ant
Red Ant
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. :(
pixienick
pixienick
cheers anyway you -
have got me thinking along a new path!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.