Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 654

problem with converting from CString to char*

$
0
0

hello people,

 

I try to cast a CString in char* but it only take the first character

 

CString sox =(CString)"A060,"  ;

char* pChar = (char*)(LPCTSTR)(CString)sox ;

 

after i built it, there is only the character "A"  in pChar and not "A060,"

 

 

HELP !!!!


Viewing all articles
Browse latest Browse all 654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>