Hello

I am writing a com dll, i am trying to use a structure variable
in on of the interface but it gives me error on compilation. I just wanted
to know whether i can use user defined data types in interface of com dll.


[id(5), helpstring("method GetData")] HRESULT GetData([in] WAYPOINTS &wp);

I get the following error

expecting a type specification near "WAYPOINTS"

Re: user defined data type in com dll by Igor

Igor
Mon Jul 12 12:34:00 CDT 2004

"Sumit T. Marwal" <sumit@cgclogic.com> wrote in message
news:uO7Gp78ZEHA.3888@TK2MSFTNGP10.phx.gbl
> I am writing a com dll, i am trying to use a structure
> variable in on of the interface but it gives me error on compilation.
> I just wanted to know whether i can use user defined data types in
> interface of com dll.

You can, but the structure has to be defined in the same IDL or in an
imported IDL file. It looks like you are using a structure without
defining it first.

See http://www.mvps.org/vcfaq/com/4.htm and
http://www.mvps.org/vcfaq/com/5.htm
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken