home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / oleview1.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  63 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  20.  
  21. #include "stdafx.h"
  22.  
  23. #include "oleview1.h"
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // IIViewer1 properties
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // IIViewer1 operations
  30.  
  31. void IIViewer1::Close(short iStatus)
  32. {
  33.     static BYTE BASED_CODE parms[] =
  34.         VTS_I2;
  35.     InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  36.          iStatus);
  37. }
  38.  
  39. short IIViewer1::Initialize(LPCTSTR pMimeType, LPCTSTR pUrl)
  40. {
  41.     short result;
  42.     static BYTE BASED_CODE parms[] =
  43.         VTS_BSTR VTS_BSTR;
  44.     InvokeHelper(0x2, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  45.         pMimeType, pUrl);
  46.     return result;
  47. }
  48.  
  49. long IIViewer1::Ready()
  50. {
  51.     long result;
  52.     InvokeHelper(0x3, DISPATCH_METHOD, VT_I4, (void *)&result, NULL);
  53.     return(result);
  54. }
  55.  
  56. void IIViewer1::Write(BSTR* pData, long lBytes)
  57. {
  58.     static BYTE BASED_CODE parms[] =
  59.         VTS_PBSTR VTS_I4;
  60.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  61.         pData, lBytes);
  62. }
  63.