Click here to Skip to main content
15,868,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what will happen when i terminate a process? Pin
Stuart Dootson10-Sep-09 20:32
professionalStuart Dootson10-Sep-09 20:32 
AnswerRe: what will happen when i terminate a process? Pin
kilt14-Sep-09 2:27
kilt14-Sep-09 2:27 
QuestionMatching function for the code Pin
Waldemar Ork10-Sep-09 9:21
Waldemar Ork10-Sep-09 9:21 
AnswerRe: Matching function for the code Pin
Selvam R10-Sep-09 9:40
professionalSelvam R10-Sep-09 9:40 
AnswerRe: Matching function for the code Pin
Maximilien10-Sep-09 9:43
Maximilien10-Sep-09 9:43 
AnswerRe: Matching function for the code Pin
Stuart Dootson10-Sep-09 11:08
professionalStuart Dootson10-Sep-09 11:08 
GeneralRe: Matching function for the code Pin
Waldemar Ork12-Sep-09 8:18
Waldemar Ork12-Sep-09 8:18 
Questionstd::wstring cannot convert from char[3] to class std::basic_string................. Pin
egerving10-Sep-09 8:25
egerving10-Sep-09 8:25 
I'm new to Window API c c++ and had some real trouble with char datatype. Then I discovered basic_string class so I could do
std::string n="XXXX" and I was on my way. But now a new problem. Seems like there is always new problem.

Anyway, I writing windows program for CE and I discovered that the program must be UNICODE. In writing my own functions using 'string' all is well. But API functions use CHAR or WCHAR depending on compile. Since CE is unicode functions use the WCHAR. So now I'm somewhat stuck on how to use std::wstring versus std::string. My
simple code

std::wstring transType="MU"

fails with cannot convert char[3] to class std::basic_string..........

Anyone know what the problem is here?
AnswerRe: std::wstring cannot convert from char[3] to class std::basic_string................. Pin
Cedric Moonen10-Sep-09 8:34
Cedric Moonen10-Sep-09 8:34 
GeneralRe: std::wstring cannot convert from char[3] to class std::basic_string................. Pin
egerving10-Sep-09 8:53
egerving10-Sep-09 8:53 
GeneralRe: std::wstring cannot convert from char[3] to class std::basic_string................. Pin
Rajesh R Subramanian10-Sep-09 9:12
professionalRajesh R Subramanian10-Sep-09 9:12 
AnswerRe: std::wstring cannot convert from char[3] to class std::basic_string................. Pin
Stuart Dootson10-Sep-09 11:05
professionalStuart Dootson10-Sep-09 11:05 
Questionfwrite for unicode big endian Pin
Rakesh510-Sep-09 8:17
Rakesh510-Sep-09 8:17 
AnswerRe: fwrite for unicode big endian Pin
Selvam R10-Sep-09 8:53
professionalSelvam R10-Sep-09 8:53 
GeneralRe: fwrite for unicode big endian Pin
Rakesh510-Sep-09 9:08
Rakesh510-Sep-09 9:08 
GeneralRe: fwrite for unicode big endian Pin
Selvam R10-Sep-09 9:34
professionalSelvam R10-Sep-09 9:34 
Questionreturning by reference and polymorphism Pin
paolosh10-Sep-09 8:11
paolosh10-Sep-09 8:11 
AnswerRe: returning by reference and polymorphism Pin
paolosh10-Sep-09 9:46
paolosh10-Sep-09 9:46 
AnswerRe: returning by reference and polymorphism Pin
Iain Clarke, Warrior Programmer10-Sep-09 9:48
Iain Clarke, Warrior Programmer10-Sep-09 9:48 
AnswerRe: returning by reference and polymorphism Pin
Iain Clarke, Warrior Programmer10-Sep-09 9:49
Iain Clarke, Warrior Programmer10-Sep-09 9:49 
AnswerRe: returning by reference and polymorphism Pin
CPallini10-Sep-09 9:59
mveCPallini10-Sep-09 9:59 
GeneralRe: returning by reference and polymorphism Pin
paolosh10-Sep-09 11:35
paolosh10-Sep-09 11:35 
Questiontic tac toe Pin
sam_200910-Sep-09 5:18
sam_200910-Sep-09 5:18 
QuestionRe: tic tac toe Pin
David Crow10-Sep-09 5:20
David Crow10-Sep-09 5:20 
AnswerRe: tic tac toe Pin
PIEBALDconsult10-Sep-09 5:58
mvePIEBALDconsult10-Sep-09 5:58 

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.