FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
March 01, 1998

Control How COM Marshals Your Data

(Page 13 of 20)
March 1998/Control How COM Marshals Your Data/Listing 1

Listing 1: sobj.idl — Sample Interface Definition Language file

typedef struct {
short size;
[size_is(size)] unsigned char *pData;
} wireCOMPARR;

typedef [unique] wireCOMPARR * LPCOMPARR;
typedef [wire_marshal(LPCOMPARR)] void * LPMYARRAY;
[
   object,
   uuid(005763A0-2850-11d1-ADCD-006097731D51)
]
interface ISimpleObject : IUnknown
{
   import "unknwn.idl";
   import "oaidl.idl";

   HRESULT DisplayArray([in]LPMYARRAY lpArr);
}
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK