Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Change default try/catch snippet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

diehard2
Junior Member

19 Posts

Posted - Mar 22 2010 :  2:18:35 PM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Mar 23 2010 :  3:27:22 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness

Edited by - feline on Mar 23 2010 3:27:40 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000