Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDebugging the spawned process. Pin
Anthony_Yio15-Jun-04 23:15
Anthony_Yio15-Jun-04 23:15 
GeneralRe: Debugging the spawned process. Pin
valikac16-Jun-04 3:29
valikac16-Jun-04 3:29 
GeneralRe: Debugging the spawned process. Pin
Blake Miller16-Jun-04 13:48
Blake Miller16-Jun-04 13:48 
GeneralRe: Debugging the spawned process. Pin
Anthony_Yio16-Jun-04 18:38
Anthony_Yio16-Jun-04 18:38 
GeneralString conversion Pin
Cedric Moonen15-Jun-04 23:13
Cedric Moonen15-Jun-04 23:13 
GeneralRe: String conversion Pin
Anthony_Yio15-Jun-04 23:37
Anthony_Yio15-Jun-04 23:37 
GeneralRe: String conversion Pin
Cedric Moonen15-Jun-04 23:49
Cedric Moonen15-Jun-04 23:49 
GeneralRe: String conversion Pin
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11 
The BSTR Value is UNICODE Value, you should use a routine to convert from Unicode to ANSI.

Using cast method, you can lose data, and you can have memory leaks.

The best way to do it is :

USES_CONVERSION
char* a = W2A(bstrvalue);

IMHO you should use UNICODE type, like wchar ao rather than char.

To prevent to have 2 types, you can use TCHAR.

regards

Rodrigo Pinho Pereira de Souza
GeneralCEdit.SetWindowText(...); Pin
V.15-Jun-04 22:36
professionalV.15-Jun-04 22:36 
GeneralRe: CEdit.SetWindowText(...); Pin
Dominik Reichl15-Jun-04 22:49
Dominik Reichl15-Jun-04 22:49 
GeneralRe: CEdit.SetWindowText(...); Pin
V.15-Jun-04 22:57
professionalV.15-Jun-04 22:57 
GeneralRe: CEdit.SetWindowText(...); Pin
Weiye Chen15-Jun-04 23:45
Weiye Chen15-Jun-04 23:45 
GeneralRe: CEdit.SetWindowText(...); Pin
V.15-Jun-04 23:52
professionalV.15-Jun-04 23:52 
GeneralRe: CEdit.SetWindowText(...); Pin
Dominik Reichl15-Jun-04 23:57
Dominik Reichl15-Jun-04 23:57 
GeneralRe: CEdit.SetWindowText(...); Pin
V.16-Jun-04 1:55
professionalV.16-Jun-04 1:55 
QuestionHow do I load a dll from within a dll. Pin
Member 114349815-Jun-04 22:16
Member 114349815-Jun-04 22:16 
AnswerRe: How do I load a dll from within a dll. Pin
Blake Miller16-Jun-04 13:50
Blake Miller16-Jun-04 13:50 
GeneralRe: How do I load a dll from within a dll. Pin
Member 114349817-Jun-04 21:41
Member 114349817-Jun-04 21:41 
GeneralRe: How do I load a dll from within a dll. Pin
Blake Miller18-Jun-04 4:16
Blake Miller18-Jun-04 4:16 
GeneralRe: How do I load a dll from within a dll. Pin
Member 114349820-Jun-04 21:07
Member 114349820-Jun-04 21:07 
GeneralVC++ Macros Reference (VB) Pin
Archer28215-Jun-04 21:39
Archer28215-Jun-04 21:39 
GeneralRe: VC++ Macros Reference (VB) Pin
Kevin McFarlane16-Jun-04 0:11
Kevin McFarlane16-Jun-04 0:11 
GeneralRe: VC++ Macros Reference (VB) Pin
Archer28216-Jun-04 10:05
Archer28216-Jun-04 10:05 
GeneralRe: VC++ Macros Reference (VB) Pin
Kevin McFarlane16-Jun-04 11:53
Kevin McFarlane16-Jun-04 11:53 
GeneralCOM newbie - ITaskbarList problem Pin
Kri515-Jun-04 21:35
Kri515-Jun-04 21:35 

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.