SAMPLE: VTBLBIND: Marshaling Using an OLE Automation Marshaler

Last reviewed: June 6, 1996
Article ID: Q139074
The information in this article applies to:
  • Microsoft OLE libraries included with:

        - Microsoft Windows NT version 3.51
        - Microsoft Windows 95
    

SUMMARY

The VTBLBIND sample demonstates how to use the OLE Automation marshaler to marshal a custom interface.

Download VTBLBIND.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

  • The Microsoft Network

          On the Edit menu, click Go To, and then click Other Location
          Type mssupport
          Double-click the MS Software Library icon
          Find the appropriate product area
          Download VTBLBIND.EXE (size: 37250 bytes) 
    
  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download VTBLBIND.EXE (size: 37250 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib\Mslfiles directory
          Get VTBLBIND.EXE (size: 37250 bytes) 
    

After downloading the file, use the following command to extract its contents and create the apprpriate directory structure:

   VTBLBIND.EXE -d

MORE INFORMATION

Standard marshaling code for custom COM interfaces, generated using the MIDL compiler or written manually, doesn't support 16/16 bit and 16/32 bit interoperability in Windows 95 and Windows NT 3.51. The OLE Automation marshaler, however, does support 16/16 bit and 16/32 bit interoperability for local servers (.exe servers), so you can use it to work around this interoperability problem if you are interested in 16-bit support. However, the types that can be used in interfaces that can be marshaled by the OLE Automation marshaler are restricted to the OLE Automation compatible types.

REFERENCES

For more details, please see the Vtblbind.doc file included in the sample.


Additional reference words: 4.00
KBCategory: kbole kbfile
KBSubcategory: LeTwoAt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 6, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.