Click here to Skip to main content
15,912,578 members
Home / Discussions / COM
   

COM

 
QuestionHow to get IDispatch of an instance of Excel in C++ DLL called from Excel xla? Pin
leo6-Jul-00 2:11
leo6-Jul-00 2:11 
AnswerRe: How to get IDispatch of an instance of Excel in C++ DLL called from Excel xla? Pin
leo10-Jul-00 4:37
leo10-Jul-00 4:37 
AnswerRe: How to get IDispatch of an instance of Excel in C++ DLL called from Excel xla? Pin
K M Bansal12-Jul-00 4:16
sussK M Bansal12-Jul-00 4:16 
GeneralRe: How to get IDispatch of an instance of Excel in C++ DLL called from Excel xla? Pin
leo13-Jul-00 3:49
leo13-Jul-00 3:49 
QuestionHow to get Browser Helper Object pointer ? Pin
solo.ru4-Jul-00 5:43
solo.ru4-Jul-00 5:43 
AnswerRe: How to get Browser Helper Object pointer ? Pin
Alex Gorev4-Jul-00 6:14
Alex Gorev4-Jul-00 6:14 
Generalvoid* in a parameter in COM function Pin
Jafet Sánchez2-Jul-00 20:14
Jafet Sánchez2-Jul-00 20:14 
GeneralRe: void* in a parameter in COM function Pin
Alex Gorev4-Jul-00 4:33
Alex Gorev4-Jul-00 4:33 
Hi,

The problem with any kind of pointers is that you can't return or pass it without marshaling the data it points to. If you are using the pointer to the well-known types, such as Long, BSTR, ... the default marshaling can be used. If you use an array of objects or void pointer you must provide additional information for marshalling. Have a look at the length_is() and other array related attributes of the IDL file. You also can return an array of data using a variant with SAFEARRAY. This is the best thing you can do if you are going to use the component in VB.

Regards,
Alex Gorev,
Dundas Software.

GeneralRe: void* in a parameter in COM function Pin
Alex Gorev4-Jul-00 6:28
Alex Gorev4-Jul-00 6:28 
QuestionHow do i extract a substring from a variant or bstr Pin
spikee2-Jul-00 0:49
spikee2-Jul-00 0:49 
AnswerRe: How do i extract a substring from a variant or bstr Pin
Jafet Sánchez2-Jul-00 20:23
Jafet Sánchez2-Jul-00 20:23 
AnswerRe: How do i extract a substring from a variant or bstr Pin
Alex Gorev4-Jul-00 4:14
Alex Gorev4-Jul-00 4:14 
GeneralATL PROP_DATA_ENTRY Pin
Lakshmi Vyas30-Jun-00 6:08
Lakshmi Vyas30-Jun-00 6:08 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Alex Gorev30-Jun-00 11:33
Alex Gorev30-Jun-00 11:33 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Lakshmi Vyas30-Jun-00 16:54
Lakshmi Vyas30-Jun-00 16:54 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Alex Gorev4-Jul-00 3:54
Alex Gorev4-Jul-00 3:54 
GeneralASP Components Pin
Kitkat29-Jun-00 19:16
Kitkat29-Jun-00 19:16 
GeneralRe: ASP Components Pin
Alex Gorev30-Jun-00 4:04
Alex Gorev30-Jun-00 4:04 
Generalcom to save error Pin
Bjarni27-Jun-00 0:31
Bjarni27-Jun-00 0:31 
GeneralRe: com to save error Pin
Alex Gorev27-Jun-00 4:11
Alex Gorev27-Jun-00 4:11 
GeneralRe: com to save error Pin
Bjarni27-Jun-00 23:46
Bjarni27-Jun-00 23:46 
GeneralRe: com to save error Pin
Alex Gorev28-Jun-00 4:16
Alex Gorev28-Jun-00 4:16 
GeneralWhat's Component Manager Pin
Member 327926-Jun-00 20:34
Member 327926-Jun-00 20:34 
GeneralRe: What's Component Manager Pin
Steeves Saillant9-Jul-00 12:37
Steeves Saillant9-Jul-00 12:37 
GeneralApartments and multi threaded programming Pin
Rajendra Acharya26-Jun-00 4:03
sussRajendra Acharya26-Jun-00 4:03 

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.