ok so i looked at my code and I actually need it as just a char * not a const...I tried some of the above methods, but it won't implicitly cast to a const char * for the strcpy function. I am in UNICODE so do I have to use this method? or is there an easier/shorter way?
OK, I understand that this post is a couple of weeks old, but I am running into a similar problem, my CString's will not convert into const char *'s did anyone ever conclude this thread? I have found that the method mentioned by uolj works fine in VC++ 6.0 however it seems to no work in the...
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.