Click here to Skip to main content
15,901,035 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: About IE 7 Tabs Pin
JaydeepB27-Jul-06 21:25
JaydeepB27-Jul-06 21:25 
GeneralRe: About IE 7 Tabs Pin
HunterNet19-Aug-06 5:16
HunterNet19-Aug-06 5:16 
QuestionCoCreateInstance() return E_OUTOFMEMORY Pin
chenxiujie26-Jul-06 19:43
chenxiujie26-Jul-06 19:43 
NewsRe: CoCreateInstance() return E_OUTOFMEMORY Pin
Anonymuos28-Jul-06 12:06
Anonymuos28-Jul-06 12:06 
QuestionHow to convert *string to _bstr_t and *BSTR Pin
agarunk26-Jul-06 4:38
agarunk26-Jul-06 4:38 
AnswerRe: How to convert *string to _bstr_t and *BSTR Pin
Lim Bio Liong27-Jul-06 8:00
Lim Bio Liong27-Jul-06 8:00 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
agarunk27-Jul-06 19:43
agarunk27-Jul-06 19:43 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
Steve S27-Jul-06 21:55
Steve S27-Jul-06 21:55 
Both the _bstr_t wrapper class and BSTR expect the text to be UNICODE, rather than ANSI or MBCS. While _bstr_t can convert from LPCSTR, BSTR on it's own can't.

You will need to use the c_str() member function of the std::string to get your LPCSTR in the first place (unlike MFC/ATL/WTL CString class, there's no LPCTSTR operator). Like I say, you can then use this pointer with something like A2W or MultiByteToWideChar.

Steve S
Developer for hire

GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
agarunk27-Jul-06 22:07
agarunk27-Jul-06 22:07 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
Zac Howland28-Jul-06 10:01
Zac Howland28-Jul-06 10:01 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
Zac Howland28-Jul-06 9:59
Zac Howland28-Jul-06 9:59 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
Steve S2-Aug-06 3:57
Steve S2-Aug-06 3:57 
GeneralRe: How to convert *string to _bstr_t and *BSTR Pin
Zac Howland2-Aug-06 4:22
Zac Howland2-Aug-06 4:22 
AnswerRe: How to convert *string to _bstr_t and *BSTR Pin
Michael Dunn28-Jul-06 6:22
sitebuilderMichael Dunn28-Jul-06 6:22 
QuestionReturning Class Pointer From ATL component.. [modified] Pin
Mahesh Kulkarni24-Jul-06 2:29
Mahesh Kulkarni24-Jul-06 2:29 
AnswerRe: Returning Class Pointer From ATL component. Pin
Stephen Hewitt24-Jul-06 23:50
Stephen Hewitt24-Jul-06 23:50 
GeneralRe: Returning Class Pointer From ATL component. Pin
Mahesh Kulkarni25-Jul-06 18:41
Mahesh Kulkarni25-Jul-06 18:41 
GeneralRe: Returning Class Pointer From ATL component. Pin
Justin Tay25-Jul-06 20:52
Justin Tay25-Jul-06 20:52 
GeneralRe: Returning Class Pointer From ATL component. Pin
Stephen Hewitt26-Jul-06 0:40
Stephen Hewitt26-Jul-06 0:40 
GeneralRe: Returning Class Pointer From ATL component. Pin
Steve S25-Jul-06 22:03
Steve S25-Jul-06 22:03 
QuestionHow the component knows it has been Advise for connection from Client? Pin
Amar Sutar24-Jul-06 0:39
Amar Sutar24-Jul-06 0:39 
AnswerRe: How the component knows it has been Advise for connection from Client? Pin
Steve S25-Jul-06 22:08
Steve S25-Jul-06 22:08 
GeneralRe: How the component knows it has been Advise for connection from Client? Pin
sudeesh26-Jul-06 2:53
sudeesh26-Jul-06 2:53 
Questioninterview questions on ATL COM Pin
pathakr21-Jul-06 3:49
pathakr21-Jul-06 3:49 
QuestionHope this works ! Pin
nvatia21-Jul-06 3:41
nvatia21-Jul-06 3:41 

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.