The information in this article applies to:
SUMMARY
This article corrects a documentation error for the GetPrivateProfileString
function call as described in the Windows version 3.1 API Reference help
file that shipped with Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATION
The declaration is incorrectly shown as:
The correct declaration is as follows:
NOTE: Each Declare statement must be entered as one, single line. Notice that the "ByVal" keyword was omitted from the second parameter in the online reference. This means that the function is passing the second parameter (lpKeyName) by reference. It needs to be passed by value. The most common problem that occurs when using the incorrect declaration is that when the function is called, it returns a copy of "lpdefault" in the "lpReturnedString" parameter instead of the actual value referenced by KeyName. Additional query words: 3.00 4.00
Keywords : |
Last Reviewed: June 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |