M
molonede
I am trying to get the GetPrivateProfileString to work, but am having
difficulties. here is my setup
Module1.bas General Declaration
Declare Function GetPrivateProfileString% Lib "kernel32.DLL" (ByVal
lpAppName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnString$, ByVal
nSize%, ByVal lpFileName$)
Code in Form (always errors out and goes to FileError.)
on error go to FileError:
Valid% = GetPrivateProfileString("AutoPrint", "database", lpDefault$,
lpReturnString$, Size%, "c:\winnt\autoprint.ini")
FileError:
MsgBox "Can't find startup ini file", 16, "Error lpReturnString"
Resume Ne
autoprint.ini contents
[AutoPrint]
database = biometric
This always goes to FileError, Is there a Reference that I need to add to my
project or am I not call it correct?
difficulties. here is my setup
Module1.bas General Declaration
Declare Function GetPrivateProfileString% Lib "kernel32.DLL" (ByVal
lpAppName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnString$, ByVal
nSize%, ByVal lpFileName$)
Code in Form (always errors out and goes to FileError.)
on error go to FileError:
Valid% = GetPrivateProfileString("AutoPrint", "database", lpDefault$,
lpReturnString$, Size%, "c:\winnt\autoprint.ini")
FileError:
MsgBox "Can't find startup ini file", 16, "Error lpReturnString"
Resume Ne
autoprint.ini contents
[AutoPrint]
database = biometric
This always goes to FileError, Is there a Reference that I need to add to my
project or am I not call it correct?