Hi,
I am trying to use the function GetPrivateProfileString as following:
[DllImport("kernel32.dll")]
public static extern Int32 GetPrivateProfileString(string lpAppName, string
lpKeyName, string lpDefault, string lpReturnedString, short nSize, string
lpFileName);
.......
String sDatabase = "";
Int32 lSize = GetPrivateProfileString("MyApp", "DataDatabase", "",
l_sDatabase, 255, "c:\\prj\\MyApp.ini");
lSize is now = 18, but l_sDatabase is still empty
How can I do?
How can I assign a string contained 255 char 0 to l_sDatabase?
Thanks
Nhan