home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / vcoledb / consumer / complexdb / complexdb.idl < prev    next >
Text File  |  1998-03-26  |  1KB  |  48 lines

  1. #include <olectl.h>
  2. // ComplexDB.idl : IDL source for ComplexDB.dll
  3. //
  4.  
  5. // This file will be processed by the MIDL tool to
  6. // produce the type library (ComplexDB.tlb) and marshalling code.
  7.  
  8. import "oaidl.idl";
  9. import "ocidl.idl";
  10.  
  11. [
  12.     uuid(392BBDE2-06E1-11D1-8F8F-000000000000),
  13.     version(1.0),
  14.     helpstring("ComplexDB 1.0 Type Library")
  15. ]
  16. library COMPLEXDBLib
  17. {
  18.     importlib("stdole32.tlb");
  19.     importlib("stdole2.tlb");
  20.     importlib("msdatsrc.tlb");
  21.  
  22.     [
  23.         object,
  24.         uuid(392BBDEF-06E1-11D1-8F8F-000000000000),
  25.         dual,
  26.         helpstring("IComplexCtl Interface"),
  27.         pointer_default(unique)
  28.     ]
  29.     interface IComplexCtl : IDispatch
  30.     {
  31.         [propget, id(1), helpstring("property DataSource")] HRESULT DataSource([out, retval] DataSource** ppDataSource);
  32.         [propputref, id(1), helpstring("property DataSource")] HRESULT DataSource([in] DataSource* pDataSource);
  33.         [propget, id(2), helpstring("property DataMember")] HRESULT DataMember([out, retval] DataMember *pVal);
  34.         [propput, id(2), helpstring("property DataMember")] HRESULT DataMember([in] DataMember newVal);
  35.         [propget, id(3), helpstring("property FieldName")] HRESULT FieldName([out, retval] BSTR *pVal);
  36.         [propput, id(3), helpstring("property FieldName")] HRESULT FieldName([in] BSTR newVal);
  37.     };
  38.  
  39.     [
  40.         uuid(392BBDF0-06E1-11D1-8F8F-000000000000),
  41.         helpstring("ComplexCtl Class")
  42.     ]
  43.     coclass ComplexCtl
  44.     {
  45.         [default] interface IComplexCtl;
  46.     };
  47. };
  48.