Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.ini API used for application

Status
Not open for further replies.

myasin78

Programmer
Jan 26, 2004
50
US
Do you know which API I should use for .ini calls

thanks,
 
Code:
Public Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long

"I'm living so far beyond my income that we may almost be said to be living apart
 
thanks for the code, but I keep getting Compile error:
on the line you give me.

here is the error. " Constants, fixed-length string, arrays, user-defined types and declare statments are not allowed as public members of object modules "

thanks,
 
You've probably declared it at the top of a form.
Create a module and then add it into it.

"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top