How To Fill a 32-bit VBA Array of UDType via a Visual C++ DLL (171583)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
- Microsoft Excel 97 for Windows
- Microsoft PowerPoint 97 for Windows
- Microsoft Word 97 for Windows
- Microsoft Visual C++ 4.0
This article was previously published under Q171583 SUMMARY This article provides sample DLL code in Microsoft Visual
C++ 4.x that illustrates how to fill a 32-bit VBA array of a user-defined type
(UDT) containing fixed-length strings with data. It also provides VBA code that
defines the equivalent structure and how to pass the array to the DLL.
REFERENCES Microsoft Visual C++ Help on SAFEARRAY and related reading
Microsoft Visual Basic file: VB4DLL.TXT
Modification Type: | Minor | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbhowto kbinterop KB171583 |
---|
|