Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get__NewEnum problem. Pin
Michael P Butler10-Dec-02 1:03
Michael P Butler10-Dec-02 1:03 
GeneralLarge ToolbarButtons Pin
Mr Bose Dayala10-Dec-02 0:13
Mr Bose Dayala10-Dec-02 0:13 
GeneralLarge ToolbarButtons Pin
Mr Bose Dayala10-Dec-02 0:12
Mr Bose Dayala10-Dec-02 0:12 
GeneralRe: Large ToolbarButtons Pin
KaЯl10-Dec-02 3:03
KaЯl10-Dec-02 3:03 
GeneralPlease take a look if this is ok! Pin
Daniel Strigl9-Dec-02 23:12
Daniel Strigl9-Dec-02 23:12 
GeneralRe: Please take a look if this is ok! Pin
Iain Clarke, Warrior Programmer9-Dec-02 23:48
Iain Clarke, Warrior Programmer9-Dec-02 23:48 
GeneralRe: Please take a look if this is ok! Pin
Daniel Strigl10-Dec-02 1:02
Daniel Strigl10-Dec-02 1:02 
QuestionDoes this work? Pin
Daniel Strigl9-Dec-02 23:01
Daniel Strigl9-Dec-02 23:01 
I want to convert a BSTR to a TCHAR* string, without using the _bstr_t class. I only work with CComBSTR and the pur BSTR.

I found some code, but I think that the code is not ok.

USES_CONVERSION;

CComBStr bstrName;
foo->get_Name(&bstrName);
LPCTSTR szName = OLE2T(bstrName);


Is the code ok? Can I convert a BSTR with the OLE2T macro? Is a OLECHAR the same as a BSTR?



Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralQe. regarding NM_RETURN in CTreeView Pin
alex_the_guy9-Dec-02 22:18
alex_the_guy9-Dec-02 22:18 
GeneralBitmaps Pin
SatyaDY9-Dec-02 21:58
SatyaDY9-Dec-02 21:58 
GeneralRe: Bitmaps Pin
Christian Graus9-Dec-02 22:01
protectorChristian Graus9-Dec-02 22:01 
GeneralRe: Bitmaps Pin
Kannan Kalyanaraman9-Dec-02 23:29
Kannan Kalyanaraman9-Dec-02 23:29 
GeneralRe: Bitmaps Pin
Scott H. Settlemier10-Dec-02 7:08
Scott H. Settlemier10-Dec-02 7:08 
GeneralDr Watson problems with vc++ Pin
Aviv Halperin9-Dec-02 21:40
Aviv Halperin9-Dec-02 21:40 
GeneralBringing a window to the top Pin
Rage9-Dec-02 21:25
professionalRage9-Dec-02 21:25 
GeneralRe: Bringing a window to the top Pin
Shog99-Dec-02 21:59
sitebuilderShog99-Dec-02 21:59 
GeneralRe: Bringing a window to the top Pin
Rage9-Dec-02 22:16
professionalRage9-Dec-02 22:16 
GeneralRe: Bringing a window to the top Pin
Christian Graus9-Dec-02 22:00
protectorChristian Graus9-Dec-02 22:00 
GeneralRe: Bringing a window to the top Pin
Rage9-Dec-02 22:17
professionalRage9-Dec-02 22:17 
GeneralCOleControl problem Pin
hdi99kf@syd.kth.se9-Dec-02 21:22
hdi99kf@syd.kth.se9-Dec-02 21:22 
GeneralNon Printing Characters Pin
John Bosko9-Dec-02 21:21
John Bosko9-Dec-02 21:21 
GeneralRe: Non Printing Characters Pin
Dominik Reichl9-Dec-02 22:47
Dominik Reichl9-Dec-02 22:47 
GeneralRe: Non Printing Characters Pin
John Bosko9-Dec-02 23:09
John Bosko9-Dec-02 23:09 
GeneralRe: Non Printing Characters Pin
jhwurmbach9-Dec-02 23:23
jhwurmbach9-Dec-02 23:23 
GeneralRe: Non Printing Characters Pin
jhwurmbach9-Dec-02 23:29
jhwurmbach9-Dec-02 23:29 

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.