Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCString's Format Fuction confusion Pin
kitty516-Jun-06 2:57
kitty516-Jun-06 2:57 
AnswerRe: CString's Format Fuction confusion Pin
toxcct16-Jun-06 3:00
toxcct16-Jun-06 3:00 
AnswerRe: CString's Format Fuction confusion [modified] Pin
Viorel.16-Jun-06 3:03
Viorel.16-Jun-06 3:03 
GeneralRe: CString's Format Fuction confusion Pin
kitty516-Jun-06 3:10
kitty516-Jun-06 3:10 
GeneralRe: CString's Format Fuction confusion Pin
toxcct16-Jun-06 3:13
toxcct16-Jun-06 3:13 
GeneralRe: CString's Format Fuction confusion [modified] Pin
kitty516-Jun-06 3:15
kitty516-Jun-06 3:15 
GeneralRe: CString's Format Fuction confusion [modified] Pin
kakan16-Jun-06 3:14
professionalkakan16-Jun-06 3:14 
QuestionPassing Arrays Of Structs Over Automation-Capable Interfaces... Pin
James R. Twine16-Jun-06 2:56
James R. Twine16-Jun-06 2:56 
   OK... I am working with an IDispatch-based interface that needs to be completely automation capable (i.e. it 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!)
Questionchange color [modified] Pin
yogendra kaushik16-Jun-06 2:12
yogendra kaushik16-Jun-06 2:12 
AnswerRe: change color [modified] Pin
_AnsHUMAN_ 16-Jun-06 2:17
_AnsHUMAN_ 16-Jun-06 2:17 
AnswerRe: change color Pin
Hamid_RT16-Jun-06 2:41
Hamid_RT16-Jun-06 2:41 
GeneralRe: change color Pin
yogendra kaushik16-Jun-06 2:55
yogendra kaushik16-Jun-06 2:55 
GeneralRe: change color Pin
Hamid_RT16-Jun-06 3:13
Hamid_RT16-Jun-06 3:13 
AnswerRe: change color Pin
David Crow16-Jun-06 2:41
David Crow16-Jun-06 2:41 
AnswerRe: change color Pin
Laxman Auti16-Jun-06 3:15
Laxman Auti16-Jun-06 3:15 
Questionexporting derived CStatic class from DLL Pin
Tobias7516-Jun-06 2:09
Tobias7516-Jun-06 2:09 
AnswerRe: exporting derived CStatic class from DLL Pin
Laxman Auti16-Jun-06 3:34
Laxman Auti16-Jun-06 3:34 
GeneralRe: exporting derived CStatic class from DLL Pin
Tobias7516-Jun-06 21:21
Tobias7516-Jun-06 21:21 
GeneralRe: exporting derived CStatic class from DLL Pin
Laxman Auti16-Jun-06 23:02
Laxman Auti16-Jun-06 23:02 
GeneralRe: exporting derived CStatic class from DLL Pin
Tobias7518-Jun-06 19:27
Tobias7518-Jun-06 19:27 
QuestionHow to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 1:51
dataminers16-Jun-06 1:51 
AnswerRe: How to Create Label Array on the Run-Time Pin
Cedric Moonen16-Jun-06 1:59
Cedric Moonen16-Jun-06 1:59 
AnswerRe: How to Create Label Array on the Run-Time [modified] Pin
_AnsHUMAN_ 16-Jun-06 2:00
_AnsHUMAN_ 16-Jun-06 2:00 
QuestionRe: How to Create Label Array on the Run-Time Pin
David Crow16-Jun-06 2:43
David Crow16-Jun-06 2:43 
AnswerRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 4:01
dataminers16-Jun-06 4:01 

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.