The information in this article applies to:
SYMPTOMS
When attempting to call the RegEnumValue API from Visual Basic or Visual
Basic for Applications code, you may receive the following error:
This problem occurs if you are running the Windows NT 4.0 Operating System and you have obtained the declaration for the RegEnumValue API from Visual Basic's API Text Viewer program. CAUSEThe Declare statement for RegEnumValue in Visual Basic's API Text Viewer is incorrect. RESOLUTION
The declaration of RegEnumValue as it currently exists in the API Text
Viewer is:
The fifth parameter, lpReserved, should be defined as ByVal. The correct declaration is:
You can also change the statement in the file win32api.txt so the next time you use the API Text Viewer, the Declare statement will be correct. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0. REFERENCES
An updated version of the Win32API.txt file is available for download for
registered users of Visual Basic. For more information about downloading
this file, please see the following Knowledge Base article:
Q178020 : FILE: WIN32API.EXE: Updated Version of Win32api32.txt File Additional query words:
kbVBp400bug kbVBp500bug kbVBp600fix kbVBp kbdsd kbDSupport KBWIN32SDK
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |