Click here to Skip to main content
15,897,226 members
Home / Discussions / COM
   

COM

 
GeneralRe: Practical question regarding largish com (ATL) based application Pin
Anonymous10-Nov-02 5:02
Anonymous10-Nov-02 5:02 
GeneralSerializing COM Components Pin
Tometa Software8-Nov-02 21:25
Tometa Software8-Nov-02 21:25 
GeneralRe: Serializing COM Components Pin
Stephane Rodriguez.8-Nov-02 21:37
Stephane Rodriguez.8-Nov-02 21:37 
GeneralDCOM, domains, and the guest account Pin
Anonymous8-Nov-02 10:03
Anonymous8-Nov-02 10:03 
GeneralActiveX Control signature Pin
Haabit8-Nov-02 3:38
Haabit8-Nov-02 3:38 
GeneralProgrammer's Reference Pin
Haakon S.8-Nov-02 0:35
Haakon S.8-Nov-02 0:35 
GeneralCommunication between 2 ActiveX Ctrls in a browser( HTML page) Pin
sanskypotov7-Nov-02 19:53
sanskypotov7-Nov-02 19:53 
GeneralIDL syntax for SAFEARRAY parameters Pin
nebbish6-Nov-02 10:14
nebbish6-Nov-02 10:14 
I'm looking for an explanation for why this syntax works, or what ATL macros or declarations is being referenced to make it work:

'SAFEARRAY(VARIANT)'

I've only been able to find 'SAFEARRAY' typedef'd as a struct and not a macro like I was expecting.

So as an experiment I put these two properties in an IDL file:

[propget] HRESULT Prop1([out, retval] SAFEARRAY(VARIANT) *pVal);
[propput] HRESULT Prop1([in] SAFEARRAY(VARIANT) newVal);
[propget] HRESULT Prop2([out, retval] SAFEARRAY *pVal);
[propput] HRESULT Prop2([in] SAFEARRAY newVal);


Then I referenced the type library from within a VB project and brought up the object browser to see how they were interpreted. After finding them and highlighting them, the information at the bottom of the screen looked like this:

<br />
Property Prop1 As Variant()<br />
Property Prop2 As tagSAFEARRAY<br />


HOW can this be???? how the heck does the SAFEARRAY(VARIANT) syntax work? is it spawning a constructor, or is it some hidden macro? is there a way to view the IDL file after pre-processing to see how this is expanded (again this assumes a macro i've not been able to find), or is IDL even pre-processed. I'm lost as to how the type information in the type library for these two parameters differs.

Can anybody shed some light? I'll make my project work regardless, but I feel incomplete without my having an understanding of what I'm doing.

thanks,
nebbish

Smart, Sexy, Sane. Pick two.
GeneralRe: IDL syntax for SAFEARRAY parameters Pin
Steve S7-Nov-02 21:31
Steve S7-Nov-02 21:31 
GeneralApps hangs in memory.. Pin
LukeV6-Nov-02 4:07
LukeV6-Nov-02 4:07 
QuestionWhen a WebBrowser2 control navigate a Web Page,how to drop selected range's html source to a EditBox control? Pin
ChengMing Liu6-Nov-02 1:59
ChengMing Liu6-Nov-02 1:59 
GeneralDLL COM Problems Pin
simwiz6-Nov-02 0:40
simwiz6-Nov-02 0:40 
GeneralRe: DLL COM Problems Pin
Stephane Rodriguez.6-Nov-02 1:01
Stephane Rodriguez.6-Nov-02 1:01 
GeneralRe: DLL COM Problems Pin
simwiz6-Nov-02 3:32
simwiz6-Nov-02 3:32 
GeneralRe: DLL COM Problems Pin
Stephane Rodriguez.6-Nov-02 3:46
Stephane Rodriguez.6-Nov-02 3:46 
GeneralRe: DLL COM Problems Pin
simwiz6-Nov-02 5:40
simwiz6-Nov-02 5:40 
QuestionIStream Interface, How to Update data ? Pin
sajal5-Nov-02 3:21
sajal5-Nov-02 3:21 
QuestionHow Can I Export a CMDIChildFrame from a COM? Pin
IMiracle4-Nov-02 0:48
IMiracle4-Nov-02 0:48 
Question??? documentation or SDK for MS-Word 97 and 2000 DOC-file format ??? Pin
maksym_from_odessa3-Nov-02 6:04
maksym_from_odessa3-Nov-02 6:04 
GeneralCOM Local Security Pin
thowra31-Oct-02 4:29
thowra31-Oct-02 4:29 
GeneralRe: COM Local Security Pin
Stephane Rodriguez.31-Oct-02 5:44
Stephane Rodriguez.31-Oct-02 5:44 
GeneralHELPPPP Pin
Renjith Ramachandran29-Oct-02 16:33
Renjith Ramachandran29-Oct-02 16:33 
GeneralRe: HELPPPP Pin
Christian Graus29-Oct-02 16:47
protectorChristian Graus29-Oct-02 16:47 
GeneralRe: HELPPPP Pin
Stephane Rodriguez.31-Oct-02 5:38
Stephane Rodriguez.31-Oct-02 5:38 
GeneralRe: HELPPPP Pin
Christian Graus31-Oct-02 9:43
protectorChristian Graus31-Oct-02 9:43 

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.