SAMPLE: MFCARRAY Using Safe Arrays in MFC AutomationLast reviewed: October 10, 1997Article ID: Q140202 |
The information in this article applies to:
SUMMARYMFCARRAY is an MFC OLE Automation server application that demonstrates the use of safe arrays. The array is passed to and returned from automation methods in a VARIANT. Microsoft Visual C++ 5.0 was used to create the automation server. Vb.vbp and Vb.frm in the sample are Visual Basic 5.0 files that can be used to control the automation server. The following file is available for download from the Microsoft Software Library:
~ Mfcarray.exe (size: 44187 bytes)For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online ServicesAfter downloading the file, use the following command to extract the sample and build the appropriate directory structure:
MFCARRAY.EXE -d MORE INFORMATIONMFCARRAY implements the following methods:
For an example of referencing the values that are in a VARIANT that contains a SAFEARRAY in an MFC client, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q167668 TITLE : HOWTO: Pass a SafeArray of Strings in a VARIANT* Keywords : LeTwoAt Technology : kbole Version : WINDOWS:4.0; WINDOWS NT:5.0,4.0,3.5; Platform : NT WINDOWS Issue type : kbfile Solution Type : kbsample |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |