Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow do I remove unicode character from the string? Pin
amitmistry_petlad 12-Feb-07 23:28
amitmistry_petlad 12-Feb-07 23:28 
AnswerRe: how do I remove unicode character from the string? Pin
Cedric Moonen12-Feb-07 23:50
Cedric Moonen12-Feb-07 23:50 
GeneralRe: how do I remove unicode character from the string? [modified] Pin
amitmistry_petlad 13-Feb-07 0:23
amitmistry_petlad 13-Feb-07 0:23 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 1:18
jhwurmbach13-Feb-07 1:18 
GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 1:56
amitmistry_petlad 13-Feb-07 1:56 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 2:09
jhwurmbach13-Feb-07 2:09 
GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 16:54
amitmistry_petlad 13-Feb-07 16:54 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 21:44
jhwurmbach13-Feb-07 21:44 
Are you compiling your project with UNICODE defined?

the std::string filename you use is certainly not Unicode-capable. You would need std::wstring.
Then your function ConvertStringToWCHAR is giving out a pointer. Hwo is owning the memory there? Who does delete it? Are you sure it is valid at the point of SendMessage?



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 22:30
amitmistry_petlad 13-Feb-07 22:30 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach14-Feb-07 2:30
jhwurmbach14-Feb-07 2:30 
GeneralRe: how do I remove unicode character from the string? Pin
toxcct13-Feb-07 1:58
toxcct13-Feb-07 1:58 
QuestionSetting Threading Model in ActiveX control using VC++ Pin
AbbyIndian12-Feb-07 23:24
AbbyIndian12-Feb-07 23:24 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
Hamid_RT12-Feb-07 23:41
Hamid_RT12-Feb-07 23:41 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
toxcct13-Feb-07 0:10
toxcct13-Feb-07 0:10 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian13-Feb-07 0:23
AbbyIndian13-Feb-07 0:23 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery13-Feb-07 7:15
Mark Salsbery13-Feb-07 7:15 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian13-Feb-07 22:45
AbbyIndian13-Feb-07 22:45 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery14-Feb-07 5:46
Mark Salsbery14-Feb-07 5:46 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery14-Feb-07 5:51
Mark Salsbery14-Feb-07 5:51 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian14-Feb-07 7:42
AbbyIndian14-Feb-07 7:42 
QuestionCan any one tell me abt Multi-threading Pin
himuskanhere12-Feb-07 23:09
himuskanhere12-Feb-07 23:09 
AnswerRe: Can any one tell me abt Multi-threading Pin
Hamid_RT12-Feb-07 23:15
Hamid_RT12-Feb-07 23:15 
AnswerRe: Can any one tell me abt Multi-threading Pin
_AnsHUMAN_ 12-Feb-07 23:17
_AnsHUMAN_ 12-Feb-07 23:17 
AnswerRe: Can any one tell me abt Multi-threading Pin
Hamid_RT13-Feb-07 18:27
Hamid_RT13-Feb-07 18:27 
Questionhow to create compatible plug-in for windows media player & real player using vc++? [modified] Pin
A.Venkata ramana12-Feb-07 23:04
A.Venkata ramana12-Feb-07 23:04 

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.