how can I get only one character from
WCHAR *str = L"string";
for example only "r", when I'm typing this
MessageBox(NULL,&str[3],NULL,NULL);
it gets "ring" and not "r"
That is because you are using a null-terminated string and passing a pointer to the third character of the string. In doing that it considers the third character onward your string.
Consider assigning Str[3] to a CHAR variable.
I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.