|
-
Apr 20th, 2001, 10:48 AM
#1
Thread Starter
Addicted Member
I am having trouble retrieving from an ini. I only get a blank string. Any help would be appreciated!
Here's my code:
Public 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
buffer = String(145, " ")
rc = GetPrivateProfileString("test", "test", "default", buffer, Len(buffer) - 1, "D:\test.ini")
retstring = Left(buffer, InStr(buffer, " ") - 1)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|