Registry Vs Ini
-
I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?
-
I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?
It depends to you if you want to ask again and again(like ini files) its difficult but if you want to learn it yourself no its easy.
-
I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?
Again, as I said to you, many, many, many, many, many times, the registry shouldn't be polluted with such kind of info. That said, if you really, badly, want to do that, it is not difficult, really. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?
You use the registry to store application related information in it (application settings, usually). An INI file should be OK-ish, but then you would be better of using a database if you expect the data to grow over the time.
It is a crappy thing, but it's life -^ Carlo Pallini