Solved

MFC Sample ?

Posted on 1998-05-11
1
896 Views
Last Modified: 2013-11-20
I'm a beginner in VC++/MFC and reading a sample of Microsoft : DLGTEMP
The DLGTEMPL sample shows how to create a dialog template dynamically
and use the template with CDialog::InitModalIndirect. The sample displays a
dialog box for selecting the height, width, and other attributes of a button,
static text, and multiline edit control, then displays the resulting dialog box
using templates in memory.
Why they had to use TRY; CATCH,... in CMyDialogTemplate::DemoIt() ?
Can I creat the second dialog by Resource editor with less code line, and
in this situation, of course I do not use TRY, CATCH?
0
Comment
Question by:nhcuong
1 Comment
 
LVL 23

Accepted Solution

by:
naveenkohli earned 0 total points
ID: 1309551
TRY and CATCH are standard MFC macros for Exception handling. Its always advisable to use these macros if you the process with in TRY block can generate any kind of exception which can generate crash. You can take of the exception in the CATCH block and have a nice exit from the routine instead of crashing the programme.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is it possible to combine several text files into one big one? (redhat v5 enterprise) 4 102
cat dog challenge 18 127
List out all word 7 318
moto 4g phone enable finger print 4 26
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question