Click here to Skip to main content
15,920,633 members
Home / Discussions / COM
   

COM

 
GeneralRe: Need some help with ActiveX and IE Pin
Jörgen Sigvardsson20-Jun-06 11:36
Jörgen Sigvardsson20-Jun-06 11:36 
AnswerRe: Need some help with ActiveX and IE Pin
Eric Dahlvang20-Jun-06 11:57
Eric Dahlvang20-Jun-06 11:57 
GeneralRe: Need some help with ActiveX and IE Pin
Marc Clifton20-Jun-06 12:39
mvaMarc Clifton20-Jun-06 12:39 
GeneralRe: Need some help with ActiveX and IE Pin
Milton Karimbekallil20-Jun-06 19:21
Milton Karimbekallil20-Jun-06 19:21 
QuestionTimer Events for Browser Refresh Pin
nmx_de20-Jun-06 7:56
nmx_de20-Jun-06 7:56 
QuestionHow to use ATL executable(exe) and service exe with the client? [modified] Pin
ROWALI20-Jun-06 2:01
ROWALI20-Jun-06 2:01 
QuestionLinking external library to ATL Pin
ROWALI19-Jun-06 19:34
ROWALI19-Jun-06 19:34 
AnswerRe: Linking external library to ATL Pin
Laxman Auti19-Jun-06 22:28
Laxman Auti19-Jun-06 22:28 
QuestionQuestion about Com in Visual C++... [modified] Pin
Yanshof19-Jun-06 17:37
Yanshof19-Jun-06 17:37 
AnswerRe: Question about Com in Visual C++... Pin
Michael Dunn19-Jun-06 19:28
sitebuilderMichael Dunn19-Jun-06 19:28 
QuestionNeed help to return string value from COM Pin
agarunk19-Jun-06 4:41
agarunk19-Jun-06 4:41 
AnswerRe: Need help to return string value from COM Pin
Milton Karimbekallil20-Jun-06 3:12
Milton Karimbekallil20-Jun-06 3:12 
QuestionProperty Set of MsWord doc files. Pin
Shivaji Patil19-Jun-06 3:46
professionalShivaji Patil19-Jun-06 3:46 
Questionhow to use DTS in vb.net Pin
saneng18-Jun-06 4:22
saneng18-Jun-06 4:22 
QuestionPassing Arrays Of Structs Over Automation-Capable Interfaces... Pin
James R. Twine16-Jun-06 18:27
James R. Twine16-Jun-06 18:27 
   [Was asked in the VC++ board earlier today, but got no replies...]

   OK... I am working with an IDispatch-based interface that needs to be completely automation capable (i.e. uses the Typelib Marshaller - no custom marshalling).

   Now, AFAICT:

     o I can pass structures over an IDispatch-based interface as the structures consist solely of automation-capable types

     o I can pass arrays of automation-capable types over IDispatch-based interfaces using SAFEARRAY (possibly wrapped within a VARIANT)

   (For now, ignore the fact that some clients, like VBScript, may be unable to handle these kinds of parameters.)

   However, I cannot seem to find information telling me that both are possible at the same time.  IOW, I want to pass an array of structures across an IDispatch-based interface.  The only information I can find regarding passing arrays of structures indicates that I will have to serialize the data to a byte stream and then send the raw bytes over the wire wrapped in a SAFEARRAY of VT_I1 types.

   While I am sure I can make that work, and can provide clients with information on how to decode the structures, this feels kinda 16-bit-ish to me, and not just a little quick-n-dirty.

   So, does anyone know if it is possible to pass arrays of structures over IDispatch-based interfaces, or do I have to do the byte-stream route?  If so, please point me to the relevant documentation.

   Adva[Thanks]nce!   (Cheesy, I know... Smile | :) )

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Passing Arrays Of Structs Over Automation-Capable Interfaces... Pin
Aamir Butt18-Jun-06 23:36
Aamir Butt18-Jun-06 23:36 
GeneralRe: Passing Arrays Of Structs Over Automation-Capable Interfaces... Pin
Lim Bio Liong19-Jun-06 14:50
Lim Bio Liong19-Jun-06 14:50 
AnswerRe: Passing Arrays Of Structs Over Automation-Capable Interfaces... Pin
Lim Bio Liong19-Jun-06 14:49
Lim Bio Liong19-Jun-06 14:49 
QuestionQuestion about CoRegisterClassObject Pin
Paulino De Assis Fong16-Jun-06 11:35
Paulino De Assis Fong16-Jun-06 11:35 
QuestionExcel and .Net2.0 Pin
Vizmunt15-Jun-06 11:49
Vizmunt15-Jun-06 11:49 
Questionhow to use IMultiMediastream ::GetDuration() Pin
GANsJob15-Jun-06 1:19
GANsJob15-Jun-06 1:19 
AnswerRe: how to use IMultiMediastream ::GetDuration() Pin
Aamir Butt18-Jun-06 23:51
Aamir Butt18-Jun-06 23:51 
GeneralRe: how to use IMultiMediastream ::GetDuration() Pin
GANsJob19-Jun-06 21:56
GANsJob19-Jun-06 21:56 
QuestionCom DCOM on Win 2003 Pin
Goodway13-Jun-06 5:57
Goodway13-Jun-06 5:57 
AnswerRe: Com DCOM on Win 2003 Pin
Aamir Butt14-Jun-06 1:27
Aamir Butt14-Jun-06 1:27 

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.