
Passing User defined data Type in ATL
If you define your UDT outside the library block, ensure it
is mentined there so it makes it into the TLB. There's no other
difference.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
Quote:
> The Author said that we can declare UDT in two ways.
> 1) explicity (inside libaray block)
> 2) implicity
> I think that the first is easier. but the author used the second.
> Do you know the difference between them?
> > I dont think so anything is complex in that article
> > here is outline to pass UDT
> > In IDL file create ur UDT
> > //////
> > ......
> > library YOUR_LIB
> > {
> > ......
> > ....
> > typedef [uuid(XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX),version(1.0)]
> > struct YOUR_STRUCT
> > {
> > file://Place ur member variable in here
> > }YOUR_STRUCT;
> > }
> > when u compile this IDL with MIDL its going to create Type lib. for you
> > so thts it.
> > using that Type lib u can use YOUR_STRUCT as data type in ur client like
> any
> > other data type
> > Vinod
> > > hello..
> > > I have a question about passing UDT in atl.
> > > It's hard to find information or documation.
> > > the CodeProject's Document (http://www.codeproject.com/atl/udtdemo.asp)
> > > is so complex..
> > > I want to know how to pass UDT and some examples.(Site link OK)
> > > please help.