jpetro7
asked on
read ini
I'm need to read values from an ini.
What's the most basic way to use GetPrivateProfileString?
-jpetro7
What's the most basic way to use GetPrivateProfileString?
-jpetro7
I don't think app.title is a good substitute for lpApplicationName. This should actually be the section heading item in an ini file... the part that is inclosed in [Brackets]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Force accepting GivenRandy's comment.
costello
Community Support Moderator @ Experts-Exchange
costello
Community Support Moderator @ Experts-Exchange
---
Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA"
Private Sub Form_Load()
Dim Ret As String, NC As Long
Ret = String(255, 0)
NC = GetPrivateProfileString(Ap
If NC <> 0 Then Ret = Left$(Ret, NC)
MsgBox Ret
End Sub
---