Click here to Skip to main content
15,902,721 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Browser Helper Object. Pin
Todd Smith16-Jul-01 12:47
Todd Smith16-Jul-01 12:47 
GeneralOpening Windows.Please help! Pin
Dardoufa Katerina15-Jul-01 20:52
Dardoufa Katerina15-Jul-01 20:52 
GeneralRe: Opening Windows.Please help! Pin
Christian Graus16-Jul-01 1:09
protectorChristian Graus16-Jul-01 1:09 
QuestionCan some one please help me Pin
15-Jul-01 20:31
suss15-Jul-01 20:31 
AnswerRe: Can some one please help me Pin
Christian Graus16-Jul-01 1:11
protectorChristian Graus16-Jul-01 1:11 
QuestionCan some one please help me Pin
rajesh prabhu15-Jul-01 20:30
rajesh prabhu15-Jul-01 20:30 
QuestionCannot get working "Open" in MCIWnd???? Pin
JerzyPeter15-Jul-01 15:23
JerzyPeter15-Jul-01 15:23 
GeneralCString & TCHAR Conversions Pin
15-Jul-01 11:30
suss15-Jul-01 11:30 
Hi there,

I am sort of new to the world of MFC and I was building a ListView and I need to add column name to the listview at runtime.

As it stands, it appears that pszText of the listview doesn't take CString values. So, tried assigning the CString to a TCHAR array. The only way I could find was by going to through every CString letter and then adding it to the TCHAR array ... i.e.

TCHAR tcArray[500];
ZeroMemory(tcArray);
for(int i =0; szString.GetSize(); i++)
{
tcArray[i] = szString.GetAt(i);
}

I was wondering if there is a more elegant way of setting a TCHAR array to a CString or this is it! i.e. a certain copy function or an overloaded operator, etc...

thanks a lot!
However, this leaves me with all those extra
GeneralRe: CString & TCHAR Conversions Pin
15-Jul-01 11:36
suss15-Jul-01 11:36 
GeneralRe: CString & TCHAR Conversions Pin
Oliver Anhuth18-Jul-01 21:23
Oliver Anhuth18-Jul-01 21:23 
GeneralOffice XP Menus Pin
15-Jul-01 11:18
suss15-Jul-01 11:18 
GeneralRe: Office XP Menus Pin
Ben Burnett15-Jul-01 13:07
Ben Burnett15-Jul-01 13:07 
GeneralRe: Office XP Menus Pin
James Millson15-Jul-01 13:28
James Millson15-Jul-01 13:28 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:26
JavaTony15-Jul-01 10:26 
GeneralRe: Please help with Menu Capture, thank you. Pin
Ben Burnett15-Jul-01 14:02
Ben Burnett15-Jul-01 14:02 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:25
JavaTony15-Jul-01 10:25 
GeneralPlease help with AutoScroll for Screen Capture Pin
JavaTony15-Jul-01 10:15
JavaTony15-Jul-01 10:15 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:07
JavaTony15-Jul-01 10:07 
GeneralRe: Please help with Menu Capture, thank you. Pin
Dever14-Oct-01 9:13
Dever14-Oct-01 9:13 
GeneralMIDL unsigned types Pin
Angel_Tsankov15-Jul-01 9:16
Angel_Tsankov15-Jul-01 9:16 
GeneralStrange Exception... Pin
Anders Molin15-Jul-01 7:40
professionalAnders Molin15-Jul-01 7:40 
GeneralRe: Strange Exception... Pin
Michael Dunn15-Jul-01 9:46
sitebuilderMichael Dunn15-Jul-01 9:46 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 9:59
professionalAnders Molin15-Jul-01 9:59 
GeneralRe: Strange Exception... Pin
Michael Dunn15-Jul-01 10:11
sitebuilderMichael Dunn15-Jul-01 10:11 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 10:16
professionalAnders Molin15-Jul-01 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.