Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access denied error in service program Pin
A_K_C11-Apr-07 3:44
A_K_C11-Apr-07 3:44 
QuestionUsing Unicode Pin
iayd11-Apr-07 2:27
iayd11-Apr-07 2:27 
AnswerRe: Using Unicode Pin
Steve S11-Apr-07 3:01
Steve S11-Apr-07 3:01 
GeneralRe: Using Unicode Pin
iayd11-Apr-07 3:16
iayd11-Apr-07 3:16 
AnswerRe: Using Unicode Pin
iayd11-Apr-07 4:01
iayd11-Apr-07 4:01 
QuestionConvert WCHAR * to TCHAR * Pin
amitmistry_petlad 11-Apr-07 1:24
amitmistry_petlad 11-Apr-07 1:24 
AnswerRe: Convert WCHAR * to TCHAR * Pin
Try11-Apr-07 2:00
Try11-Apr-07 2:00 
AnswerRe: Convert WCHAR * to TCHAR * Pin
Mark Salsbery11-Apr-07 6:35
Mark Salsbery11-Apr-07 6:35 
A WCHAR is a set type (an unsigned short).

TCHAR is a type macro that varies depending on whether _UNICODE is defined or not:
If _UNICODE is defined, TCHAR is a wchar_t
If _UNICODE is not defined, TCHAR is a char

So, if _UNICODE is defined, no conversion is necessary.
If _UNICODE is not defined, you may need to convert the string pointed to by the WCHAR* to a char
string. You can use MultiByteToWideChar() API for this.

Mark


"If you can dodge a wrench, you can dodge a ball."

QuestionUse cout in binary mode Pin
Cedric Moonen11-Apr-07 1:02
Cedric Moonen11-Apr-07 1:02 
AnswerRe: Use cout in binary mode Pin
Nemanja Trifunovic11-Apr-07 4:08
Nemanja Trifunovic11-Apr-07 4:08 
GeneralRe: Use cout in binary mode Pin
Cedric Moonen11-Apr-07 4:43
Cedric Moonen11-Apr-07 4:43 
Questiondbase Pin
akram mirzaei11-Apr-07 0:39
akram mirzaei11-Apr-07 0:39 
QuestionDigital Camera Pin
natrum1000010-Apr-07 23:51
natrum1000010-Apr-07 23:51 
AnswerRe: Digital Camera Pin
Mark Salsbery11-Apr-07 6:38
Mark Salsbery11-Apr-07 6:38 
GeneralRe: Digital Camera Pin
natrum1000011-Apr-07 23:57
natrum1000011-Apr-07 23:57 
GeneralRe: Digital Camera Pin
natrum1000012-Apr-07 0:01
natrum1000012-Apr-07 0:01 
QuestionCatching the enter keydown with several edit controls Pin
Accius10-Apr-07 23:35
Accius10-Apr-07 23:35 
AnswerRe: Catching the enter keydown with several edit controls Pin
vimarsh puneet10-Apr-07 23:46
vimarsh puneet10-Apr-07 23:46 
QuestionConverting character array to LPCTSTR Pin
siddharthsan10-Apr-07 23:16
siddharthsan10-Apr-07 23:16 
AnswerRe: Converting character array to LPCTSTR Pin
Programm3r10-Apr-07 23:33
Programm3r10-Apr-07 23:33 
GeneralRe: Converting character array to LPCTSTR Pin
CPallini10-Apr-07 23:43
mveCPallini10-Apr-07 23:43 
GeneralRe: Converting character array to LPCTSTR Pin
Programm3r10-Apr-07 23:47
Programm3r10-Apr-07 23:47 
AnswerRe: Converting character array to LPCTSTR Pin
CPallini10-Apr-07 23:41
mveCPallini10-Apr-07 23:41 
QuestionRIL_Initialize returns S_FALSE Pin
dishadiv10-Apr-07 23:12
dishadiv10-Apr-07 23:12 
QuestionRe: RIL_Initialize returns S_FALSE Pin
Programm3r10-Apr-07 23:48
Programm3r10-Apr-07 23:48 

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.