Click here to Skip to main content
15,904,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCToolBar Question Pin
Joel Holdsworth15-Sep-05 1:16
Joel Holdsworth15-Sep-05 1:16 
QuestionDebug assertion failed Pin
Hervy15-Sep-05 0:47
Hervy15-Sep-05 0:47 
GeneralRe: Debug assertion failed Pin
prasad_som15-Sep-05 1:01
prasad_som15-Sep-05 1:01 
AnswerRe: Debug assertion failed Pin
Bob Stanneveld15-Sep-05 1:01
Bob Stanneveld15-Sep-05 1:01 
AnswerRe: Debug assertion failed Pin
Zdeslav Vojkovic15-Sep-05 2:39
Zdeslav Vojkovic15-Sep-05 2:39 
AnswerRe: Debug assertion failed Pin
David Crow15-Sep-05 7:38
David Crow15-Sep-05 7:38 
QuestionUsing Crystal Report in VC++6.0 Pin
cofd15-Sep-05 0:38
cofd15-Sep-05 0:38 
GeneralRe: Using Crystal Report in VC++6.0 Pin
prasad_som15-Sep-05 3:14
prasad_som15-Sep-05 3:14 
QuestionLinking advapi32.lib Pin
Rainos15-Sep-05 0:36
Rainos15-Sep-05 0:36 
AnswerRe: Linking advapi32.lib Pin
prasad_som15-Sep-05 1:56
prasad_som15-Sep-05 1:56 
AnswerRe: Linking advapi32.lib Pin
Blake Miller15-Sep-05 4:34
Blake Miller15-Sep-05 4:34 
QuestionSaving configuration option data Pin
karmendra_js14-Sep-05 23:26
karmendra_js14-Sep-05 23:26 
AnswerRe: Saving configuration option data Pin
kakan14-Sep-05 23:44
professionalkakan14-Sep-05 23:44 
AnswerRe: Saving configuration option data Pin
Manfred Staiger14-Sep-05 23:46
Manfred Staiger14-Sep-05 23:46 
GeneralRe: Saving configuration option data Pin
karmendra_js15-Sep-05 0:15
karmendra_js15-Sep-05 0:15 
GeneralRe: Saving configuration option data Pin
Manfred Staiger15-Sep-05 0:23
Manfred Staiger15-Sep-05 0:23 
AnswerRe: Saving configuration option data Pin
ThatsAlok14-Sep-05 23:53
ThatsAlok14-Sep-05 23:53 
GeneralRe: Saving configuration option data Pin
karmendra_js15-Sep-05 0:25
karmendra_js15-Sep-05 0:25 
AnswerRe: Saving configuration option data Pin
ThatsAlok15-Sep-05 0:57
ThatsAlok15-Sep-05 0:57 
GeneralRe: Saving configuration option data Pin
David Crow15-Sep-05 7:41
David Crow15-Sep-05 7:41 
AnswerRe: Saving configuration option data Pin
Ashok Dhamija15-Sep-05 1:28
Ashok Dhamija15-Sep-05 1:28 
AnswerRe: Saving configuration option data Pin
Achim Klein15-Sep-05 8:52
Achim Klein15-Sep-05 8:52 
JokeRe: Saving configuration option data Pin
ThatsAlok15-Sep-05 18:06
ThatsAlok15-Sep-05 18:06 
QuestionUniCode To Ansi Conversion problem Pin
fjlv200514-Sep-05 23:24
fjlv200514-Sep-05 23:24 
AnswerRe: UniCode To Ansi Conversion problem Pin
Jack Puppy15-Sep-05 1:11
Jack Puppy15-Sep-05 1:11 
You didn't initialize the Ansi string, it points to NULL.

Just prior to the second WideChar call, insert the code:

<br />
hold = new char [len + 1];<br />
WideCharToMultiByte(CP_ACP,0,(LPCWSTR)m_wordSearchText,len,hold,len,NULL,NULL);<br />
hold[len] = '\0';<br />
<br />
...<br />
<br />
delete [] hold;<br />
<br />


I usually use a CStringA object instead of allocating with new, not sure if it's part of Embedded Visual 3.



He is smart. He will make our Windows go.


-- modified at 7:11 Thursday 15th September, 2005

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.