SAMPLE: BINARY: Transfer Binary Data Using OLE AutomationLast reviewed: August 5, 1996Article ID: Q131046 |
The information in this article applies to:
BINARY is an OLE Automation server that you can obtain from the Microsoft Software Library. 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. 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 trasfer 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 -dThis builds the directory structure for you.
You can find BINARY.EXE (size: 39892 bytes) , a self-extracting file, on these services: On the www.microsoft.com home page, click the Support icon Click Knowledge Base, and select the product Enter kbfile BINARY.EXE (size: 39892 bytes) , and click GO! Open the article, and click the button to download the file ftp ftp.microsoft.com Change to the Softlib/Mslfiles folder Get BINARY.EXE (size: 39892 bytes) On the Edit menu, click Go To, and then click Other Location Type "mssupport" (without the quotation marks) Double-click the MS Software Library icon Find the appropriate product area Locate and Download BINARY.EXE Dial (206) 936-6735 to connect to MSDL Download BINARY.EXE (size: 39892 bytes) For additional information about downloading, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online Services |
Additional reference words: 3.50 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |