SAMPLE: VTBLBIND: Marshaling Using an OLE Automation Marshaller (139074)



The information in this article applies to:

  • Microsoft OLE Libraries, when used with:
    • the operating system: Microsoft Windows NT 3.51
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 95
    • the operating system: Microsoft Windows 2000

This article was previously published under Q139074

SUMMARY

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

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
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.

REFERENCES

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

Modification Type:MinorLast Reviewed:8/9/2004
Keywords:kbAutomation KB139074 kbAudDeveloper