Binary.exe Transfers Binary Data Using OLE Automation

Article translations Article translations
Article ID: 131046
Expand all | Collapse all

Summary

BINARY is an OLE Automation server that you can obtain from the Microsoft Download Center. It demonstrates how to transfer binary data using a SAFEARRAY of unsigned char. The CTRL directory in this sample contains an automation controller that will obtain the binary data from the server.

More information

The following file is available for download from the Microsoft Download Center:
Binary.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. Binary data can be transferred with OLE Automation by using a SAFEARRAY of unsigned char (VT_ARRAY|VT_UI1). Binary data can also be transferred by passing the IUnknown of a data transfer object that supports IDataObject. This sample uses the first approach, not the second.

Standard controllers like Visual Basic may be able to pass binary data to an automation server using the approach discussed in Don Box's column in the June 1996 issue of the Microsoft Systems Journal.

See the README.TXT in the sample for details on how to compile and run the sample. After you download BINARY.EXE, use the following command to run it:
BINARY.EXE -d
This builds the directory structure for you.

Properties

Article ID: 131046 - Last Review: June 22, 2014 - Revision: 4.0
Keywords: 
kbcode kbfile kbsample KB131046

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com