Click here to Skip to main content
15,896,154 members
Articles / Mobile Apps / Windows Mobile

Code that debugs itself

Rate me:
Please Sign up or sign in to vote.
4.78/5 (74 votes)
17 Feb 200534 min read 312.9K   5K   184  
A set of macros for detecting and reporting critical errors, combined with a technique of writing solid code.
The VAssist.tpl file contains keyboard shortcuts for Visual Assist 6.0 that make typing
commonly used constructions faster.  Visual Assist 6.0 from http://www.wholetomato.com/ 
is one of the most useful addins for Visual Studio 6.0 that upgrades Intellisence 
features of VC++. I strongly recommend this addin. I added several keyboard shortcuts 
for my macros to make my life simpler.
	
Now, when I type "qs", it automatically inserts "Q_SUCCEEDED()". The other shortcuts 
mean: "qa" ("Q_ASSERT()"), "qi" ("Q_INVALID()"), "qf" ("Q_FAILED()"), "qe" ("Q_ERROR()"), 
"qx" ("Q_EXCEPTION(e);"), "ql" ("Q_LOG( _T("") );"), "qc" ("Q_CHECK()"), "qr" ("Q_RETURN();"). 
This file is usually located under the following folder (you also may edit it from Visual Assist options): 
	
C:\Program Files\Visual Assist 6.0\Misc
	

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Team Leader OpTier
Israel Israel
Programming computers since entering the university in 1992, but dreaming of programming long time before putting hands on my first computer.

Experienced in cross-platform software development using C++ and Java, as well as rapid GUI development using Delphi/C#. Strong background in networking, relational databases, Web development, and mobile platforms.

Like playing guitar, visiting historical sites (not in the Internet, in the car Smile | :) ) and cooking meat with friends (sorry about vegetarians). Look for more information on www.schetinin.com

Comments and Discussions