home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / atlduck / duck / duck.idl < prev    next >
Text File  |  1998-03-26  |  922b  |  40 lines

  1. import  "oaidl.idl";
  2. // duck.idl : IDL source for duck.dll
  3. //
  4.  
  5. // This file will be processed by the MIDL tool to
  6. // produce the type library (duck.tlb) and marshalling code.
  7.  
  8.     [
  9.     
  10.         uuid(120B72AE-65BF-11D0-9DDC-00A0C9034892),
  11.     
  12.         helpstring("IDuckInt Interface"),
  13.         pointer_default(unique)
  14.     ]
  15.     interface IDuckInt : IUnknown
  16.     {
  17.         [helpstring("method Quack")] HRESULT Quack(BSTR szWhosCalling);
  18.         [helpstring("method Flap")] HRESULT Flap(BSTR szWhosCalling);
  19.         [helpstring("method Paddle")] HRESULT Paddle(BSTR szWhosCalling);
  20.         [helpstring("method Walk")] HRESULT Walk(BSTR szWhosCalling);
  21.     };
  22. [
  23.     uuid(120B72A2-65BF-11D0-9DDC-00A0C9034892),
  24.     version(1.0),
  25.     helpstring("duck 1.0 Type Library")
  26. ]
  27. library DUCKLib
  28. {
  29.     importlib("stdole32.tlb");
  30.  
  31.     [
  32.         uuid(120B72AF-65BF-11D0-9DDC-00A0C9034892),
  33.         helpstring("DuckInt Class")
  34.     ]
  35.     coclass DuckInt
  36.     {
  37.         [default] interface IDuckInt;
  38.     };
  39. };
  40.