How To Pass Binary Data Between an ActiveX Control and VB (154172)
The information in this article applies to:
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 2.1
- Microsoft Visual C++ 2.2
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q154172 SUMMARY
This article will demonstrate how to pass an array of bytes between Visual
Basic and an ActiveX (OLE) Control. This is accomplished by creating a
method that takes a VARIANT parameter that will contain a SafeArray of
bytes.
REFERENCES
For more information, please see the following articles in the Microsoft
Knowledge Base:
122287
Limits of VB 3.0 & Disptest as Automation Controllers
131046
SAMPLE: BINARY: Transfer Binary Data Using OLE Automation
131086
SAMPLE: SAFEARAY: Use of Safe Arrays in Automation
140202
SAMPLE: MFCARRAY: Using Safe Arrays in MFC Automation
122289
Passing Structures in OLE Automation
Microsoft Systems Journal, June 1996, "Q&A OLE" by Don Box.
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbCtrl KB154172 |
---|
|