Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: plz tell me how fd_write code i needed Pin
mirtu19-Mar-08 23:20
mirtu19-Mar-08 23:20 
GeneralRe: plz tell me how fd_write code i needed Pin
Rajesh R Subramanian19-Mar-08 23:31
professionalRajesh R Subramanian19-Mar-08 23:31 
GeneralRe: plz tell me how fd_write code i needed Pin
Michael Dunn20-Mar-08 12:48
sitebuilderMichael Dunn20-Mar-08 12:48 
GeneralRe: plz tell me how fd_write code i needed Pin
mirtu19-Mar-08 22:08
mirtu19-Mar-08 22:08 
AnswerRe: plz tell me how fd_write code i needed Pin
Himanshu Joshi20-Mar-08 0:14
Himanshu Joshi20-Mar-08 0:14 
GeneralMeta file problem Pin
g_sandipan19-Mar-08 19:20
g_sandipan19-Mar-08 19:20 
QuestionRe: Meta file problem Pin
David Crow20-Mar-08 3:21
David Crow20-Mar-08 3:21 
GeneralAbout WideCharToMultiByte Pin
vikramlinux19-Mar-08 18:30
vikramlinux19-Mar-08 18:30 
Hi friends,
I have unicode string like
wstring filename = "??????? ?????, ????? ? ª ????";

which I am trying to convert to normal multibyte string using

WideCharToMultiByte API.

But the conversion fails. Please refer Following code

int Length ;

// Here I call this API to get length of the wstring

char* output = new char[Length];
int foundUnmapable = FALSE;

My call is like

WideCharToMultiByte(CP_ACP,
NULL,
input.c_str(),
-1,
output,
len,
NULL,
&foundUnmapable );

This code fails saying that foundUnmapable = TRUE;

GetLastError() return 1008 error number which means
"An attempt was made to reference a token that does not exist."

Can anybody point out the issue here?
GeneralRe: About WideCharToMultiByte Pin
vikramlinux19-Mar-08 19:27
vikramlinux19-Mar-08 19:27 
QuestionRe: About WideCharToMultiByte Pin
MANISH RASTOGI19-Mar-08 19:43
MANISH RASTOGI19-Mar-08 19:43 
GeneralRe: About WideCharToMultiByte Pin
vikramlinux19-Mar-08 20:21
vikramlinux19-Mar-08 20:21 
GeneralRe: About WideCharToMultiByte Pin
MANISH RASTOGI19-Mar-08 20:32
MANISH RASTOGI19-Mar-08 20:32 
GeneralRe: About WideCharToMultiByte Pin
vikramlinux19-Mar-08 20:39
vikramlinux19-Mar-08 20:39 
QuestionRe: About WideCharToMultiByte Pin
CPallini19-Mar-08 22:48
mveCPallini19-Mar-08 22:48 
GeneralRe: About WideCharToMultiByte Pin
vikramlinux19-Mar-08 23:02
vikramlinux19-Mar-08 23:02 
QuestionHow to use TabbedTextOut? Pin
crossie19-Mar-08 18:27
crossie19-Mar-08 18:27 
QuestionRe: How to use TabbedTextOut? Pin
David Crow20-Mar-08 3:31
David Crow20-Mar-08 3:31 
GeneralRe: How to use TabbedTextOut? Pin
crossie20-Mar-08 17:05
crossie20-Mar-08 17:05 
GeneralVC++ 2008-built-EXE dependencies on Runtime DLLs Pin
Capitanevs19-Mar-08 12:52
Capitanevs19-Mar-08 12:52 
GeneralRe: VC++ 2008-built-EXE dependencies on Runtime DLLs Pin
CPallini19-Mar-08 23:17
mveCPallini19-Mar-08 23:17 
GeneralRe: VC++ 2008-built-EXE dependencies on Runtime DLLs Pin
Capitanevs20-Mar-08 23:33
Capitanevs20-Mar-08 23:33 
GeneralYou're welcolme. Pin
CPallini20-Mar-08 23:48
mveCPallini20-Mar-08 23:48 
GeneralRe: VC++ 2008-built-EXE dependencies on Runtime DLLs Pin
Michael Dunn20-Mar-08 12:59
sitebuilderMichael Dunn20-Mar-08 12:59 
GeneralRe: VC++ 2008-built-EXE dependencies on Runtime DLLs Pin
Capitanevs20-Mar-08 23:12
Capitanevs20-Mar-08 23:12 
GeneralRe: VC++ 2008-built-EXE dependencies on Runtime DLLs Pin
CPallini20-Mar-08 23:50
mveCPallini20-Mar-08 23:50 

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.