Count the number of characters in a CString
-
You should get able to use the GetLength function.
strMyString.GetLength();
- monrobot13
-
hi mr2003, you know what, you have a complete part of Visual Studio called MSDN... have you ever heard about it ? ;P if you have a look at CString Class members, i'm sure you can find that answer by yourself... nevermind, everybody start to learn one day... ;) see you later i hope TOXCCT
-
hi mr2003, you know what, you have a complete part of Visual Studio called MSDN... have you ever heard about it ? ;P if you have a look at CString Class members, i'm sure you can find that answer by yourself... nevermind, everybody start to learn one day... ;) see you later i hope TOXCCT
-
hi mr2003, you know what, you have a complete part of Visual Studio called MSDN... have you ever heard about it ? ;P if you have a look at CString Class members, i'm sure you can find that answer by yourself... nevermind, everybody start to learn one day... ;) see you later i hope TOXCCT
Hello! Right! But anyway I know many good coders that know nothing about MFC :) By the way: there exist empty global CString object (I am talking about vc60). By changing that object, every empty one will be initialized by the changed value. It can be achieved by changing newly created CString object in incorrect way of course. (Something like getting to inner char pointer, or calling GetBuffer without a release) Funny results :-D