Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read a directory/folder? Pin
Richard MacCutchan19-Sep-09 5:17
mveRichard MacCutchan19-Sep-09 5:17 
AnswerRe: How to read a directory/folder? Pin
Code-o-mat19-Sep-09 5:17
Code-o-mat19-Sep-09 5:17 
QuestionHow to call 1-byte character functions? [modified] Pin
Anthony Appleyard19-Sep-09 3:48
Anthony Appleyard19-Sep-09 3:48 
AnswerRe: How to call 1-byte character functions? Pin
CPallini19-Sep-09 4:13
mveCPallini19-Sep-09 4:13 
GeneralRe: How to call 1-byte character functions? Pin
Anthony Appleyard19-Sep-09 5:00
Anthony Appleyard19-Sep-09 5:00 
QuestionConvert CString to std::string Pin
kumar sanghvi19-Sep-09 2:31
kumar sanghvi19-Sep-09 2:31 
AnswerRe: Convert CString to std::string Pin
Richard MacCutchan19-Sep-09 3:09
mveRichard MacCutchan19-Sep-09 3:09 
AnswerRe: Convert CString to std::string Pin
CPallini19-Sep-09 3:18
mveCPallini19-Sep-09 3:18 
You may use a MFC conversion macro (plaase read here, for caveats) for instance:
USES_CONVERSION;
CString str = _T("foo");
std::string s(T2A(str));
MessageBoxA(NULL, s.c_str(), "Converted CString", MB_OK);

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

QuestionAbout Window 7 theme and MFC Pin
hyrahul6419-Sep-09 2:16
hyrahul6419-Sep-09 2:16 
AnswerRe: About Window 7 theme and MFC Pin
Stuart Dootson19-Sep-09 21:52
professionalStuart Dootson19-Sep-09 21:52 
GeneralRe: About Window 7 theme and MFC Pin
caroparo14-Jan-10 21:41
caroparo14-Jan-10 21:41 
GeneralRe: About Window 7 theme and MFC Pin
Stuart Dootson14-Jan-10 22:01
professionalStuart Dootson14-Jan-10 22:01 
QuestionMatrix multiplication in C Pin
Shivam Singh19-Sep-09 2:04
Shivam Singh19-Sep-09 2:04 
AnswerRe: Matrix multiplication in C Pin
CPallini19-Sep-09 2:19
mveCPallini19-Sep-09 2:19 
QuestionRe: Matrix multiplication in C Pin
Michael Schubert19-Sep-09 4:32
Michael Schubert19-Sep-09 4:32 
QuestionAdd an event on runtime Pin
clint198218-Sep-09 23:50
clint198218-Sep-09 23:50 
AnswerRe: Add an event on runtime Pin
theCPkid19-Sep-09 0:28
theCPkid19-Sep-09 0:28 
GeneralRe: Add an event on runtime Pin
clint198219-Sep-09 0:34
clint198219-Sep-09 0:34 
GeneralRe: Add an event on runtime Pin
theCPkid19-Sep-09 0:56
theCPkid19-Sep-09 0:56 
AnswerRe: Add an event on runtime Pin
CPallini19-Sep-09 0:57
mveCPallini19-Sep-09 0:57 
QuestionHow can find all image files in MyComputer? Pin
Le@rner18-Sep-09 23:23
Le@rner18-Sep-09 23:23 
AnswerRe: How can find all image files in MyComputer? Pin
theCPkid19-Sep-09 0:37
theCPkid19-Sep-09 0:37 
GeneralRe: How can find all image files in MyComputer? Pin
Michael Schubert19-Sep-09 4:34
Michael Schubert19-Sep-09 4:34 
GeneralRe: How can find all image files in MyComputer? Pin
theCPkid19-Sep-09 5:43
theCPkid19-Sep-09 5:43 
GeneralRe: How can find all image files in MyComputer? Pin
Chris Losinger19-Sep-09 6:13
professionalChris Losinger19-Sep-09 6:13 

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.