The information in this article applies to:
SUMMARYA missing data type of the value returned by an external DLL function can cause Microsoft Excel to crash. If the prototype for the function is not VOID, the "Declare" statement should specify the correct return value. MORE INFORMATIONFor example, to get the Windows Directory, the GetWindowsDirectory function from the Windows API could be used from VBA. The prototype for GetWindows Directory is:
Following is the VBA code that will cause an Application Error during the
calling of GetWindowsDirectory:
If the following Declare statement is used, specifying the return type, the
procedure works correctly:
Additional query words: 3.50 3.51 4.00 xlsdk xldk vba
Keywords : kbnokeyword |
Last Reviewed: November 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |