char array to LPCTSTR
        Posted  
        
            by Yan Cheng CHEOK
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Yan Cheng CHEOK
        
        
        
        Published on 2010-06-11T06:49:45Z
        Indexed on 
            2010/06/11
            6:52 UTC
        
        
        Read the original article
        Hit count: 344
        
c++
May I know how I can perform the following conversion?
// el.strCap is char[50]
// InsertItem is expecting TCHAR pointer (LPCTSTR)
// How I can perform conversion?
// I do not have access in both "list" and "el" source code
// Hence, there is no way for me to modify their signature.
list.InsertItem(i, el.strCap);
And No. I do not want to use
WideCharToMultiByte
They are too cumbersome to be used.
© Stack Overflow or respective owner