Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBegining ATL 3 COM programming source code Pin
Sakhalean3-Jul-11 21:18
Sakhalean3-Jul-11 21:18 
AnswerRe: Begining ATL 3 COM programming source code Pin
Richard MacCutchan3-Jul-11 23:56
mveRichard MacCutchan3-Jul-11 23:56 
Questionset value from edit box to url? Pin
Le@rner3-Jul-11 20:51
Le@rner3-Jul-11 20:51 
AnswerRe: set value from edit box to url? Pin
_AnsHUMAN_ 3-Jul-11 21:04
_AnsHUMAN_ 3-Jul-11 21:04 
Questionerror in CString to const std::string conversion. Pin
Le@rner3-Jul-11 19:15
Le@rner3-Jul-11 19:15 
AnswerRe: error in CString to const std::string conversion. Pin
ShilpiP3-Jul-11 19:35
ShilpiP3-Jul-11 19:35 
GeneralRe: error in CString to const std::string conversion. Pin
Le@rner3-Jul-11 20:57
Le@rner3-Jul-11 20:57 
AnswerRe: error in CString to const std::string conversion. Pin
Rajesh R Subramanian3-Jul-11 20:59
professionalRajesh R Subramanian3-Jul-11 20:59 
Are you building for Unicode or MBCS? I think you're building for Unicode, but are using the ANSI version of std string. Try the following:
//Unicode build
CString sz = L"Hello";
const std::wstring str = sz;

//MBCS build
CStringA sz = "Hello";
const std::string str = sz;

"Real men drive manual transmission" - Rajesh.

GeneralRe: error in CString to const std::string conversion. Pin
Le@rner3-Jul-11 21:23
Le@rner3-Jul-11 21:23 
GeneralRe: error in CString to const std::string conversion. Pin
Richard MacCutchan3-Jul-11 22:27
mveRichard MacCutchan3-Jul-11 22:27 
GeneralRe: error in CString to const std::string conversion. Pin
PJ Arends4-Jul-11 11:18
professionalPJ Arends4-Jul-11 11:18 
GeneralRe: error in CString to const std::string conversion. Pin
Richard MacCutchan4-Jul-11 23:51
mveRichard MacCutchan4-Jul-11 23:51 
AnswerRe: error in CString to const std::string conversion. Pin
pratik_mishra3522-Jul-11 2:40
pratik_mishra3522-Jul-11 2:40 
QuestionPassing data to running thread Pin
csrss2-Jul-11 23:12
csrss2-Jul-11 23:12 
AnswerRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 3:57
professionalRajesh R Subramanian3-Jul-11 3:57 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 4:45
csrss3-Jul-11 4:45 
GeneralRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 5:46
professionalRajesh R Subramanian3-Jul-11 5:46 
GeneralRe: Passing data to running thread Pin
Albert Holguin3-Jul-11 7:32
professionalAlbert Holguin3-Jul-11 7:32 
GeneralRe: Passing data to running thread Pin
Mark Salsbery3-Jul-11 7:40
Mark Salsbery3-Jul-11 7:40 
GeneralRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 8:47
professionalRajesh R Subramanian3-Jul-11 8:47 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 9:07
csrss3-Jul-11 9:07 
AnswerRe: Passing data to running thread Pin
Mark Salsbery3-Jul-11 7:44
Mark Salsbery3-Jul-11 7:44 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 9:03
csrss3-Jul-11 9:03 
AnswerRe: Passing data to running thread Pin
LiangGuangLin3-Jul-11 18:01
LiangGuangLin3-Jul-11 18:01 
QuestionNMAKE Error Pin
SNI2-Jul-11 5:10
SNI2-Jul-11 5:10 

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.