Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delcare function for VB6.0
Message
 
To
07/06/2001 16:35:39
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00516646
Message ID:
00516736
Views:
15
>what is the proper command for reading and writing from an INI file using the declare statements
>
>i'm using
>declare function GetPrivateProfileString Liv "Kernel" (arglist) originally from VB3.0 and now converting to 6.0?
>i know i need to look for Kernel32 now but what is access string?

Something like this:
Declare Function GetPrivateProfileString Lib "kernel32" _
                 Alias "GetPrivateProfileStringA" _
                 (ByVal lpApplicationName As String, _
                  ByVal lpKeyName As Any, _
                  ByVal lpDefault As String, _
                  ByVal lpReturnedString As String, _
                  ByVal nSize As Long, _
                  ByVal lpFileName As String _
                 ) As Long
Declare Function WritePrivateProfileString Lib "kernel32" _
                 Alias "WritePrivateProfileStringA" _
                 (ByVal lpApplicationName As String, _
                  ByVal lpKeyName As Any, _
                  ByVal lpString As Any, _
                  ByVal lpFileName As String _
                 ) As Long
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform