I know Visual C++ very well with Windows API.WritePrivateProfileString opens a file itself then closes itself.I had plans adding some extra code before WritePrivateProfileString ,hence I file_open n closed it.I had started a post at MSDN Forum, replies wer that WritePrivateProfileString works only with 16bit Applications.
I need to write my own ini lib I suppose as none exist.
Is there any easier way??
Also I tried wat you told,I removed file_open and file_close still failed.
Thanks!