Click to See Complete Forum and Search --> : Release code with MFC GUI not working properly when executed outside VS .NET


WyZ
July 24th, 2002, 10:40 AM
Hi,

I made a simple program in C++ using a WIN32 console application project. It consists in a parser which needs an input file name as well as an output file name.

It worked just fine in realease mode. I then decided to create a MFC GUI which would call the import and export functions of my parser with file names choosed with common dialog boxes, exactly the same way the console version called these function with strings retrieved with cin.

My problem is that it works well in release mode when I start the execution from inside VisualStudio .NET. When I use the same .exe from the release folder, only part of the file is parsed. I tried with several files and I always have the same problem.

I don't have that problem when I use the MFC debug .exe or the release .exe from the console project.

Does anyone know if VisualStudio loads DLLs for the MFC application when it is executed from inside VisualStudio?

I tried to compile with shared and static MFC and to turn on and off optimization parameters without any success.

Any idea on how to solve my problem?

Thanks.

WyZ