Discuss using *.cfg and *.ini files in the C Programming forum on Dev Shed. using *.cfg and *.ini files C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,390
Time spent in forums: 1 Month 4 Weeks 1 Day 22 h 36 m 15 sec
Reputation Power: 4080
You can perhaps use GetPrivateProfileString(), GetPrivateProfileStruct(), WritePrivateProfileString() and WritePrivateProfileStruct(). See http://msdn.microsoft.com/library/d...ofilestring.asp for the documentation. However, you should know that Microsoft provides these functions, only for compatibility with 16 bit windows applications. The new Microsoft standard is to store config information in the registry. If you want to go to the new standards, see this link: http://msdn.microsoft.com/library/d...y_functions.asp