.ini path
-
Anyone know how retrieve the path of an .ini file of an application? GetProfileString retrieve only the ini file name, I would the path! Grazie!:confused:
I think you got it mixed up, GetProfileString retrieves information from Win.ini. I suggest you read about the registry and initialization files in MSDN. There is code at CodeProject under General\System\Registry\. Cheers,
/FredrikSonork ID: 100.11430:PhatBoy
-
Anyone know how retrieve the path of an .ini file of an application? GetProfileString retrieve only the ini file name, I would the path! Grazie!:confused:
XAlien wrote: GetProfileString retrieve only the ini file name You are a little confused....:) GetProfileString retrieve the string asociated with the key. (GetProfileString don't return the path or ini file name) It's important to understand the difference between GetProfileString and GetPrivateProfileString, the First one reads the win.ini file the second one, the ini in a private directory, you must to inform the path and ini file name.... ;) Regards.... Beta. Software undergoes beta testing shortly before it's released. Beta is Latin for "still doesn't work." Carlos Antollini. Sonork ID 100.10529 cantollini