OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: ?IDL: how to share common code in separate file?

From: Alexander Balaev (Alexander.BalaevCOMPUWARE.COM)
Date: Mon May 05 2003 - 14:30:23 CDT


Stephen,
Thanks a lot!
That works also. without //mktyplib203 switch.
Regards,
Alex.

On Mon, 5 May 2003 12:17:14 -0700, Stephen Sauls <SSAULSOPTO22.COM> wrote:

>1) You don't need the
>
> import "oaidl.idl";
> import "ocidl.idl";
>
>in your declaration idl file, only in the main idl file.
>
>
>2) Use #include instead of import so enter
>
>#include "declaration.idl";
>
>instead of
>
>import "declaration.idl";
>
>
>3) Only include the main idl file in your project.
>
>
>That should do the trick.

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM