Click here to Skip to main content
16,013,322 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to put HTML? Pin
CodeProjectSQ19-Aug-02 9:29
CodeProjectSQ19-Aug-02 9:29 
AnswerRe: How to put HTML? Pin
Stephane Rodriguez.19-Aug-02 10:38
Stephane Rodriguez.19-Aug-02 10:38 
AnswerRe: How to put HTML? Pin
S.A.19-Aug-02 16:00
S.A.19-Aug-02 16:00 
GeneralRe: How to put HTML? Pin
Stephane Rodriguez.19-Aug-02 18:59
Stephane Rodriguez.19-Aug-02 18:59 
GeneralString Passing in COM component Pin
abhinarulkar18-Aug-02 21:23
abhinarulkar18-Aug-02 21:23 
GeneralRe: String Passing in COM component Pin
Jason Henderson19-Aug-02 2:53
Jason Henderson19-Aug-02 2:53 
GeneralRe: String Passing in COM component Pin
b_p_smith26-Aug-02 13:17
b_p_smith26-Aug-02 13:17 
GeneralRe: String Passing in COM component Pin
Jason Henderson26-Aug-02 17:01
Jason Henderson26-Aug-02 17:01 
b_p_smith wrote:
BSTR* pbstrFoo = NULL;
MyFunc(pbstrFoo);


You forgot the first param in my example so it would look like this:

BSTR bstrFoo1;
BSTR* pbstrFoo = NULL;
bstrFoo1 = ::SysAllocString(L"Test")
MyFunc(bstrFoo1, pbstrFoo);


In C++ you must free both strings.

I don't use VB so I can't give an example, but when the string falls out of scope, VB should handle freeing the string.

So don't worry about your VB client app, it will just see this as a return value.

Jason Henderson
quasi-homepage
articles
"Like it or not, I'm right!"


GeneralRe: String Passing in COM component Pin
b_p_smith27-Aug-02 8:19
b_p_smith27-Aug-02 8:19 
GeneralGet/create application object Pin
EvanHansen18-Aug-02 21:14
EvanHansen18-Aug-02 21:14 
GeneralRe: Get/create application object Pin
Stephane Rodriguez.19-Aug-02 3:07
Stephane Rodriguez.19-Aug-02 3:07 
GeneralConnection Points Question for COM Gurus Pin
Complete Com Beginner17-Aug-02 13:05
sussComplete Com Beginner17-Aug-02 13:05 
GeneralRe: Connection Points Question for COM Gurus Pin
Ernest Laurentin18-Aug-02 17:06
Ernest Laurentin18-Aug-02 17:06 
GeneralRe: Connection Points Question for COM Gurus Pin
Todd Smith27-Aug-02 20:40
Todd Smith27-Aug-02 20:40 
Generaldiscarding smart pointers Pin
Jason Henderson16-Aug-02 10:44
Jason Henderson16-Aug-02 10:44 
GeneralRe: discarding smart pointers Pin
Ernest Laurentin18-Aug-02 17:14
Ernest Laurentin18-Aug-02 17:14 
GeneralRe: discarding smart pointers Pin
Jason Henderson19-Aug-02 2:44
Jason Henderson19-Aug-02 2:44 
GeneralCOM Object for sending ZIP file over internet Pin
abhinarulkar16-Aug-02 3:11
abhinarulkar16-Aug-02 3:11 
GeneralRe: COM Object for sending ZIP file over internet Pin
Stephane Rodriguez.18-Aug-02 2:40
Stephane Rodriguez.18-Aug-02 2:40 
GeneralRe: COM Object for sending ZIP file over internet Pin
Amit Dey27-Aug-02 12:12
Amit Dey27-Aug-02 12:12 
GeneralRe: COM Object for sending ZIP file over internet Pin
Todd Smith27-Aug-02 20:37
Todd Smith27-Aug-02 20:37 
GeneralDLL Linker error Pin
suresh_sathya15-Aug-02 23:20
suresh_sathya15-Aug-02 23:20 
GeneralRe: DLL Linker error Pin
Stephane Rodriguez.16-Aug-02 2:07
Stephane Rodriguez.16-Aug-02 2:07 
GeneralDll Loading Clarification Pin
Muhammad Nauman Khan15-Aug-02 20:44
Muhammad Nauman Khan15-Aug-02 20:44 
GeneralCOM Usage Pin
abhinarulkar15-Aug-02 19:05
abhinarulkar15-Aug-02 19:05 

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.