Ïðîäîëæàåòñÿ ïîäïèñêà íà íàøè èçäàíèÿ! Âû íå çàáûëè ïîäïèñàòüñÿ?

Ðèñóíîê 6. QuoteProviders.idl


//
// OuoteProviders.idl : IDL source for QuoteProviders.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (QuoteProvlders.tlb) and marshalling code.
import “oaidl.idl”:
import “ocidl.idl”;
[
  uuid(F02EAD3F-9FOC-1101-B2B2-006008ACADF7),
  helpstring( IQuoteProvider Interface”),
  pointer default(unique)
]
interface IQuoteProvider : IUnknown
{
  [helpstring(“method GetHost”)] 
      HRESULT GetHost(LPSTR lpszHost, DWORD dwLen);
  [helpstring(“method GetPort”)] HRESULT GetPort(USHORT* pnPort);
  [helpstring(“method LoginIsRequired”)] 
      HRESULT LoginIsRequired(BOOL* pbResult);
  [helpstrlng(“method GetMethod”)] 
      HRESULT GetMethod(LPSTR lpszMethod. DWORD dwLen);
  [helpstringl”method GetURL”)] 
      HRESULT GetURL(LPSTR IpszURL, DWORD dwLen);
  [helpstring(“method GetAcceptTypes”)] 
      HRESULT GetAcceptTypes(LPSTR lpszAcceptTypes, DWORD dwLen):
  [helpstring(“method GetHttpVersion”)] 
      HRESULT GetHttpVersion(LPSTR lpszHttpVersion, DWORD dwLen);
  [helpstring(“method GetFlags”)] HRESULT GetFlags(DWORD* pdwFlags);
  [helpstring(“method GetHeaders”)] 
      HRESULT GetHeaders(LPSTR lpszHeaders, DWORD dwLen):
  [helpstring(“method GetData”)] 
      HRESULT GetData(LPSTR lpszData, DWORD dwLen):
  [helpstring(“method ParseResult”)] 
      HRESULT ParseResult(LPSTR lpszResu1t);
  [helpstring(“method initializeData”)] 
      HRESULT Initia1izeData(LPSTR lpszData);
};
[
  uuid(BFD86BC0-A004-11d1-9912-004033D06B6E),
  helpstring(“IQuoteProviderEvent Interface”),
  pointer default(unique)
]
interface IQuoteProviderEvent : IUnknown //IDispatch
{
  import “oaidl.idl”:
  HRESULT UpdateSymbol(LPCTSTR lpszSymbol, LPCTSTR lpszPrice,
           LPCTSTR lpszChange, LPCTSTR lpszOpen,
           LPCTSTR lpszVolume);
};
[   
  uuid(F02EAD31-9F0C-1101-B2B2-006008ACADF7),  
  version(1.0),  
  helpstring(“QuoteProviders 1.0 Type Library”)
]
library QUOTEPROVIDERSLib
{
  importlib(“stdole32.tlb”);
  importlib(“stdole2.tlb”);
  [
    uuid(F02EAD40-9FOC-11D1-B2B2-006008ACADF7),
    helpstring(“ProviderYahoo Class”)
  ]
  coclass ProviderYahoo
  {
    [default] interface IQuoteProvider;
    [default, source] interface IQuoteProviderEvent;
  };
  [
    uuid(32FBDA43-A002-11D1-9912-004033D06B6E),
    helpstring(“ProviderFastQuote Class”)
  ]
  coclass ProviderFastQuote
  {    
    [default] interface IQuoteProvider;
    [default, source] interface IQuoteProviderEvent;
  };
};

Copyright © 1994-2016 ÎÎÎ "Ê-Ïðåññ"