GetPrivateProfileString in MFC
Posted on 1997-12-09
I'm a VB programmer learning C++. I have an application I am writing which I want to read the values in an ini file on init...the code I am using is as follows:
// CWtpautoApp initialization
;WritePrivateProfileString("Colors", "color2", lpbuffer, "Myini.ini");
#Myini.ini looks like this:
I'd like the app to read the ini file and then write to it.
I have tried everything the last couple of days and just cannot get this thing to work. If anybody could show me how to write this correctly, I'd appreciate it very much. I am using MS Visual C++ 4.0 Pro...and I am using statically linked libraries in MFC.
Thanks in advance...I'm going to get some sleep...:-o