cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
listbox to .ini file
listbox to .ini file
Jun 24, 2009 at 12:09pm UTC
Yane87
(1)
hi guys,
i am looking to save the items that i have in my listbox to a specified in file.
i have already done this with my textboxes and it has worked fine, but when it comes to my listbox and multiline stuff, my program doesnt want to compile.
here is some code that i have worked on.
if(listBox1->Items->Count>0)
{
IniFile ^iniFile = gcnew IniFile("C:\\.......");
iniFile->writeSection("Options", "Startfile", "D:\\Sknkknk.......");
IniFile ^iniFile1 = gcnew IniFile("D:\\Student\\sdjf\\Data.ini");
//creates the address in which the ini file will need to write
for(int i=0; listBox1->Items->Count-1; i++)
{
iniFile1->WriteSection("Last Variables", "listBox1_Items" + i.ToString(), listBox1->Items[i], L"D:\\Student\\sdjf\\Data.ini");
}
i get the following error regarding the above code.
error C2039: 'WriteSection' : is not a member of 'IniFileHandling::IniFile'
Topic archived. No new replies allowed.