Microsoft KB Archive/139074

= SAMPLE: VTBLBIND: Marshaling Using an OLE Automation Marshaller =

Article ID: 139074

Article Last Modified on 8/9/2004

-

APPLIES TO

 Microsoft OLE 4.0, when used with:  Microsoft Windows NT 3.51 Service Pack 5

 Microsoft Windows NT 4.0

 Microsoft Windows 95

 Microsoft Windows 2000 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q139074

<div class="summary_section">

SUMMARY
The VTBLBIND sample demonstrates how to use the OLE Automation marshaller to marshal a custom interface.

<div class="moreinformation_section">

MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

Vtblbind.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

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

VTBLBIND.EXE -d

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 marshaller, 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 marshaller are restricted to the OLE Automation compatible types.

<div class="references_section">