How To Callback Visual Basic Functions From a C DLL (181578)
The information in this article applies to:
- 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
This article was previously published under Q181578 SUMMARY
With the new AddressOf operator in Microsoft Visual Basic 5.0, you can pass
a DLL the pointer to a Microsoft Visual Basic function and have the DLL
call that function through the pointer. This article gives you some sample
code to get started and also demonstrates how to pass strings from your DLL
to Microsoft Visual Basic.
REFERENCES
Microsoft Visual Basic 5.0 Books Online: AddressOf
For additional information about using the AddressOf operator for
callbacks, see the following article in the Microsoft Knowledge Base:
171729
: How To Do Generic Callbacks Using a Helper DLL
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Joe
Crump, Microsoft Corporation
| Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
|---|
| Keywords: | kbhowto KB181578 |
|---|
|