home *** CD-ROM | disk | FTP | other *** search
/ Learn Java Now / Learn_Java_Now_Microsoft_1996.iso / MsDev / Samples / Microsoft / COMCallingJava / euclid.odl < prev    next >
Encoding:
Text File  |  1996-08-27  |  843 b   |  38 lines

  1. // This describes the library GCDLib
  2.     uuid (33B0ECE0-E706-11cf-A0C2-00AA00A71DD8),
  3.     version (1.0),
  4.     helpstring("GCDLib 1.0 Type Library")
  5. ]
  6. library GCDLib
  7. {
  8.     // GCDLib imports the interfaces, classes, structures,
  9.     // types, and so forth from STDOLE32.TLB.
  10.     importlib("stdole32.tlb");
  11.  
  12.     // This describes the interface IGCD, a dispinterface.
  13.     // A dispinterface is an IDispatch-type interface.
  14.     [
  15.         uuid (33B0ECE1-E706-11cf-A0C2-00AA00A71DD8),
  16.         helpstring("IGCD Interface")
  17.     ]
  18.     dispinterface IGCD 
  19.     {
  20.     properties:
  21.     methods:
  22.         // The single method exported by the interface
  23.         [id(1)]long GCD([in] long v, [in] long u);
  24.     }
  25.  
  26.     // The coclass that implements the interface    
  27.     [
  28.         uuid (33B0ECE2-E706-11cf-A0C2-00AA00A71DD8),
  29.         helpstring("Euclid Class")
  30.     ]
  31.     coclass CEuclid
  32.     {
  33.         dispinterface IGCD;
  34.     };
  35. };
  36.         
  37.