"Nemanja Trifunovic" <nt*********@hotmail.com> wrote in
news:11**********************@l41g2000cwc.googlegr oups.com:
You may want to look at this:
http://www.codeproject.com/cpp/CIni.asp
BTW, why do you create INI on the heap in your example?
This is a fragment from some legacy code that I am attempting to convert to
..NET. It is part of an example program that shows how to use a 3rd party
DLL, and is giving me fits.
I downloaded the CIni code/example but can't seem to get it to work
properly. I think mostly it's MFC/.NET differences.
Code from example that works:
m_sDelimiter = ini.GetString(_T("Settings"), _T("Delimiter"), _T(","));
My code:
IpEdit->Text = ini.GetString(_T("DEFAULTS"),_T("IpAddress"),_T
("10.1.1.1"));
Compiler complains that CIni::GetString function does not take 3 arguments.
Obviously a bogus error, but why?
I didn't think going to .NET was going to mean starting over with
programming 101, but it seems that everything I want do do, and used to be
easy, is just so difficult.