Click here to Skip to main content
15,912,313 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
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 
agarunk wrote:
BSTR* TargetBSTR ;
string *SourceStr=new string;
string StrBuff;
const char *CharBuff;

StrBuff=*SourceStr;
CharBuff=StrBuff.c_str();
*TargetBSTR = _com_util::ConvertStringToBSTR(CharBuff);


That is far more code than you need to do for this. See my response below.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

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 
AnswerRe: Hope this works ! Pin
Stephen Hewitt21-Jul-06 4:04
Stephen Hewitt21-Jul-06 4:04 
GeneralRe: Hope this works ! Pin
nvatia21-Jul-06 4:12
nvatia21-Jul-06 4:12 

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.