The MFC Professional Stingray Software

MFC FAQ SNEAK PEEK
Our exclusive preview of Scot Wingo's upcoming additions

Q. After MSVC opens my project, it seems to take a long time to parse my files for the class information. What can I do to speed up this process?

A. Check the Tools, Options, Directories tab. Go through the different directory settings, removing paths that don't belong there.

-- Matt Saucier


Q. Whenever I run my program under the VC++ debugger, I see 'first chance exception' messages which I don't usually see when running in a non-debug environment.

A. Whenever an exception is raised, the debugger will display a "First-chance exception" message. While it is distracting, it is not a problem if the exception is handled . . .

As an example, create a trivial dialog-based application with a pushbutton. In that pushbutton's click handler, place the code:


    TRY
    {
        CFile::Remove("notaf.ile");
    }
    CATCH
    {
        // ignore
    }
    END_CATCH

When you run the program and click the button, you will get a first-chance exception message, but the program will continue to run without error.

-- David Elliott



This tip is provided for instructional purposes, and is released to the public domain. No claim of ownership is made. Use it at your own risk. No warranties are expressed or implied. The resulting program may not be fully functional. No animals were harmed in the making of this tip.


Comments? Speak up!

| Past FAQ Tips | Latest FAQ Document | Home |