This is m y code::
Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String,[B] ByVal lpKeyName As Any[/B], [B]ByVal lpString As Any[/B], ByVal lpFileName As String) As Long
Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, [B]ByVal lpKeyName As Any[/B], ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
What needs to be done to properly declare the function using vb.net