WordBasic Declare Statement Case Sensitive in Word for Win NTLast reviewed: August 5, 1997Article ID: Q119509 |
The information in this article applies to:
SYMPTOMSThe Win32 API function name you include in a Declare statement is case sensitive. For example, the following sample Declare statement is not valid if Word is running under Windows 95 or Windows NT:
Declare Function getwindowsdirectorya Lib "KERNEL32" \ (lpszPath As String, nBufferSize As Long) As LongHowever, if you use the correct combination of uppercase and lowercase letters in the function name, the same statement is valid:
Declare Function GetWindowsDirectoryA Lib "KERNEL32" \ (lpszPath As String, nBufferSize As Long) As Long CAUSEWhen you access named functions in 32-bit .DLL files, Windows 95 and Windows NT require the calling application to provide the exact name of the function, including proper case, before the function can be called. Because Word for Windows NT and Word 7.0 are 32-bit applications, they are required to adhere to this requirement, including the WordBasic Declare command. NOTE: The .DLL filename in the Declare command is NOT case sensitive. Kbcategory: kbusage kbmacro kbenv KBSubcategory: |
Additional reference words: 6.0 winword ntword wordnt 6.0a 6.0c 7.0
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |