Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Change default try/catch snippet

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
diehard2 Posted - Mar 22 2010 : 2:18:35 PM
Hello, the default try catch snippet is

try
{
}
catch (CMemoryException* e)
{

}
catch (CFileException* e)
{
}
catch (CException* e)
{
}
It seems that this is a highly specific usage for (possibly?) MFC programmers. It would be far more useful to the average C++ programmer to have

try
{

}
catch (const std::exception& ex)
{

}
where the cursor would be placed over the std::exception
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 23 2010 : 3:27:22 PM
You can easily edit the VA Snippet for try / catch. The default snippets are just there to get people started and give them ideas. Clearly they cannot be perfect for every person in every situation.

http://www.wholetomato.com/products/features/vasnippets.asp

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000