Article ID: 140202 - View products that this article applies to.
This article was previously published under Q140202
This article has been archived. It is offered "as is" and will no longer be updated.
MFCArray 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.
Note The sample also works in Visual C++ 6.0 and in Visual Basic 6.0.
The following file is available for download from the Microsoft Download Center:
MFCArray.exeFor more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591Microsoft 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 prevent any unauthorized changes to the file.
(http://support.microsoft.com/kb/119591/ )How to obtain Microsoft support files from online services
After downloading the file, use the following command to extract the sample and build the appropriate directory structure:
MFCArray implements the following methods:
For more information and an example of referencing the values that are in a VARIANT that contains a SAFEARRAY in an MFC client, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/167668/ )How to pass a SafeArray of strings in a VARIANT* between Visual C++ and Visual Basic 6.0
Article ID: 140202 - Last Review: February 28, 2014 - Revision: 5.0
Contact us for more help
Connect with Answer Desk for expert help.