|
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.Balaev
COMPUWARE.COM)
Date: Mon May 05 2003 - 13:18:05 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Thank you all for very helpful input on the issue!!!! :))
I got it working like this... idl is below...
Basically I removed /mktyplib203 MIDL compiler option from DSW file.
Regards,
Alex.
declaration.idl------------------------------------------
import "oaidl.idl";
import "ocidl.idl";
typedef enum _OptionalParam // this tag is OPTIONAL
{
OPTIONAL_PARAM
,MANDATORY_PARAM
,CONDITIONAL_PARAM
} OptionalParam;
--------------------------------------------------------
main.idl------------------------------------------
import "declaration.idl";
interface IFoo : IUnknown
{
[helpstring("method GetParamInfo")] HRESULT
GetParamInfo([out] OptionalParam* optionalParam);
};
-----------------------------------
----------------------------------------------------------------
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-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]