⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 general.shtml

📁 mfc资源大全包含MFC编程各个方面的源码
💻 SHTML
字号:
<HTML>

<!-- Header information-->
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <!-- add your name in the CONTENT field below -->
   <META NAME="Author" CONTENT="Tom Moor">
   <TITLE><!-- Section Title -->Debugging - <!-- Article Title -->Some general debugging tips</TITLE>
</HEAD>

<!-- Set background properties -->
<body background="/fancyhome/back.gif" bgcolor="#FFFFFF">

<!-- A word from our sponsors... -->
<table WIDTH="100%">
<tr WIDTH="100%"><td align=center><!--#exec cgi="/cgi/ads.cgi"--><td></tr>
</table>



<CENTER><H3><FONT COLOR="#AOAO99">
<!-- Article Title -->Some general debugging tips
</FONT></H3></CENTER>
<HR>

<!-- Author and contact details -->
This article was contributed by <!-- Author Email --><A HREF="mailto:moor@m-s.ch"><!-- Author Name -->Tom Moor</A>.

<!-- Text / source code -->
<p><!-- The 'p' starts a paragraph of normal text -->

Here are some general 'tips & tricks' which proofed to be useful over the last years. 

<H4>KISS: Keep It Simple and Stupid</H4>
Try to reduce the problem by building a sample application. With the new 'AppWizard' it does take less 
than a minute to build a running MFC application! So whenever you encounter a problem or start programming
in a new area (like 'OLE automation' or 'owner drawed controls') build a new test appliction. There you 
can fool around and the rebuilds are fast!

<p><H4>Use the 'Debug Windows'</H4>
There are 6 Debug Windows in the IDE aside from 'Variables' and 'Watch' the 'Call Stack' and the 'Memory' 
window are the ones I use the most.<BR>
If you set your breakpoints smart the 'Call Stack' will give you
a exellent view of when and where your methods are called and what paramter are used.<BR>
You don't have to be an assembler wizard to make use of the 'Memory' Window. Most time I use
it to watch some values which are not shown completly in the 'Watch Window'<BR>
Try the context menus on the 'Debug Windows' (right mouse click) they have some nice features!

<p><H4>Use all available resources</H4>
There are tons of useful information available. The one I use the most is the MSDN CD
(Microsoft Developer Network). These 2 CDs are published quarterly by Microsoft and contain a lot of
excellent examples and technical information.<BR>
You can search the same knowledge base on the web: 
<A HREF="http://support.microsoft.com/support">http://support.microsoft.com/support</A>. But sometimes it takes quite some time to get an search result...so I prefer the CDs!<BR>
To get more information about MSDN go to: 
<A HREF="http://www.microsoft.com/msdn">http://www.microsoft.com/msdn</A><BR>
<BR>
There are a lot of other useful sites on the net, check them out. Many have a discussion board and free source!<BR>
Chances are good that somebody out there solved the same problem before. Don't try to reinvent the world!
<BR>
A good place to start is the <A HREF="http://www.codeguru.com/links/links.shtml">'Links' - page</A> on this site. 

<p><H4>Read, read, read</H4>
There are many magazines and to many books regarding MFC/MSVC/Win32. Some of them are excellent and others
but a lot aren't worth the paper! Check your local bookstore and those on the web!<BR>
<BR>
(Maybe Zafir will setup a new section on this site with book reviews...)<BR>
<BR>
To get the latest on debugging check John Robbins 'Bugslayer'- column in the 'Microsoft System Journal' at 
<A HREF="http://www.microsoft.com/msj">http://www.microsoft.com/msj</A><BR>
He is an expert on debugging and he also shares tips in his column some of them you can find in this section.


<!-- Posted / Update  date mm/dd/yy - add to the list -->
<p>Date Posted: <!-- date here -->20 May 1998
<P><HR>

<!-- Codeguru contact details -->
<TABLE BORDER=0 WIDTH="100%">
<TR>
<TD WIDTH="33%"><FONT SIZE=-1><A HREF="http://www.codeguru.com">Goto HomePage</A></FONT></TD>

<TD WIDTH="33%">
<CENTER><FONT SIZE=-2>&copy; 1998 Zafir Anjum</FONT>&nbsp;</CENTER>
</TD>

<TD WIDTH="34%">
<DIV ALIGN=right><FONT SIZE=-1>Contact me: <A HREF="mailto:zafir@home.com">zafir@home.com</A>&nbsp;</FONT></DIV>
</TD>
</TR>
</TABLE>

<!-- Counter -->


</BODY>
</HTML>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -