HOWTO: Callback Visual Basic Functions From a C DLLLast reviewed: February 25, 1998Article ID: Q181578 |
The information in this article applies to:
SUMMARYWith 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.
MORE INFORMATIONTo use this article, follow the steps below to create a Microsoft Visual Basic 5.0 .exe project and a Microsoft Visual C++ 5.0 .dll project. Then run your Microsoft Visual Basic program to test it.
Steps to Create the Microsoft Visual Basic 5.0 Project
Steps to Create the Microsoft Visual C++ 5.0 Project
REFERENCESMicrosoft 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:
ARTICLE-ID: Q171729 TITLE : HOWTO: Do Generic Callbacks Using a Helper DLL(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Joe Crump, Microsoft Corporation
Keywords : VBKBDLL kbcode Version : win95:5.0;winnt:5.0 Platform : Win95 winnt Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |