Also check this great sample 'IniReader': http://www.mentalis.org/soft/class.qpx?id=6
this site has even more very useful classes: http://www.mentalis.org/soft/classes.qpx Thomas > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Bill Schmidt > Subject: Win32 API syntax problem, using C# > I'm trying to convert a working VB.NET WinForms application > to C#, and I'm > having trouble with the string buffer being returned from a > Win32 API call. > Public Declare Function GetPrivateProfileString Lib "kernel32" _ > Alias "GetPrivateProfileStringA" _ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.