home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c13 / lab01 / ex01 / modayrx.idl < prev    next >
Encoding:
Text File  |  1997-02-20  |  953 b   |  41 lines

  1. // MoDaYrX.idl : IDL source for MoDaYrX.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (MoDaYrX.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.  
  10.     [
  11.         object,
  12.         uuid(7564C89B-80CB-11D0-98AB-00A0D100E3C8),
  13.         dual,
  14.         helpstring("Imdy Interface"),
  15.         pointer_default(unique)
  16.     ]
  17.     interface Imdy : IDispatch
  18.     {
  19.         [id(1), helpstring("method MDYfromBSTR")] HRESULT MDYfromBSTR(BSTR bstrDate, short * pnM, short * pnD, short * pnY);
  20.         [id(2), helpstring("method ValidateMDY")] HRESULT ValidateMDY(BSTR * pbstrMessage, short nM, short nD, short nY);
  21.     };
  22. [
  23.     uuid(7564C88E-80CB-11D0-98AB-00A0D100E3C8),
  24.     version(1.0),
  25.     helpstring("MoDaYrX 1.0 Type Library")
  26. ]
  27. library MODAYRXLib
  28. {
  29.     importlib("stdole32.tlb");
  30.     importlib("stdole2.tlb");
  31.  
  32.     [
  33.         uuid(049E9D8D-696D-11D0-98AB-00A0D100E3C8),
  34.         helpstring("mdy Class")
  35.     ]
  36.     coclass mdy
  37.     {
  38.         [default] interface Imdy;
  39.     };
  40. };
  41.