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

COM

 
QuestionHow to put HTML? Pin
User 100963419-Aug-02 8:20
User 100963419-Aug-02 8:20 
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 
Just so I'm clear, what the best way to deal with this in a way that's "friendly" to both C++ and VB (I work exclusively in C++ myself)?

I'd envision a C++ calling sequence similar to:

BSTR* pbstrFoo = NULL;<br />
MyFunc(pbstrFoo);<br />
// MyFunc calls ::SysAllocString and fills the BSTR<br />
if(NULL != pbstrFoo)<br />
{<br />
  // use pbstrFoo<br />
  ::SysFreeString(pbstrFoo);<br />
  pbstrFoo = NULL;<br />
}


Is that about right? So what would a similar calling sequence be for a VB programmer? Is there something I can do differently within my COM object to make it easier for both?
GeneralRe: String Passing in COM component Pin
Jason Henderson26-Aug-02 17:01
Jason Henderson26-Aug-02 17:01 
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 

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.