In an MFC application I have a file browse button. When I click it and select a file, the file is loaded and things are fine.
After this I have a function, which attempts to open another file using fopen(), but can not open the file although file is present. If I select cancel in the file browse dialog, fopen() works fine but as soon as I select a file using file browse dialog fopen does not work.
Can someone tell why this is happening.
fopeninstead offstream?fopen()? Because it normally takes 2 of them (one for filename, one for mode)