?
Solved

MFC Sample ?

Posted on 1998-05-11
1
Medium Priority
?
905 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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