Download Debugging Visual C++ Windows: Choose the Best Debugging by Keith Bugg PDF

By Keith Bugg

Keith Bugg presents readers with a tutorial-based publication that covers the whole software program cycle and examines either Microsoft's debugger and third-party debuggers, together with Purify and limits Checker. because the debugging strategy consumes a lot of a programmer's time, "Debugging visible C++ home windows" is designed to be a regular reference for all visible C++ purposes.

Show description

Read or Download Debugging Visual C++ Windows: Choose the Best Debugging Tools/Debug the Entire Software Cycle with Disk PDF

Best c & c++ books

Learn the MFC C++ Classes

This e-book teaches introductory programmers who're already accustomed to object-oriented programming and C++ the way to use the MFC library.

Beginning C for Arduino: Learn C Programming for the Arduino

Starting C for Arduino, moment variation is written if you don't have any past adventure with microcontrollers or programming yet wish to scan and research either. up-to-date with new tasks and new forums, this ebook introduces you to the c language, reinforcing every one programming constitution with an easy demonstration of the way you should use C to manage the Arduino relatives of microcontrollers.

Additional resources for Debugging Visual C++ Windows: Choose the Best Debugging Tools/Debug the Entire Software Cycle with Disk

Sample text

With the data domain being a reflection of the enterprise's business rule(s), your application can automatically reject invalid data values, which in turn obviates error propagation. Error propagation is like a linked list one error causes another one somewhere else in the program. ) Data Input While we're on the subject of data, be aware that the data input you solicit from the user can be a source of software failure. For example, suppose you build a Visual C++ application that allows the user to save data to a file.

For example, if a private heap was created of 32Kb and you tried to use HeapAlloc() to allocate a 32Kb block, you really wouldn't get the full 32Kb. So, always ask for more than you really need. In contrast, trying to allocate a very small size (that is, less than 12 bytes) returns 12. Take a look at the following code. dwPageSize); // // now allocate just 1 byte // lpMem = HeapAlloc(hMem, HEAP_GENERATE_EXCEPTIONS |HEAP_NO_SERIALIZE | HEAP_ZERO_MEMORY, 1); Page 25DWORD dwSize; dwSize = HeapSize(hMem, HEAP_NO_SERIALIZE, lpMem); HeapFree(hMem, HEAP_NO_SERIALIZE, lpMem) If you examine the variable dwSize returned from the call to HeapSize(), you'll find it is 12, not 1.

Page 14 Project Management Good project management techniques can prevent some software errors. For large projects, especially those being developed on a network, a Code Management System (CMS) is essential. This type of system will be covered in more detail later in this book, but for now, suffice it to say that a CMS is much like a librarian, except it tracks who has a file/module instead of books. Recovery points can thus be established, as well as the knowledge of who changed what, and when.

Download PDF sample

Rated 4.65 of 5 – based on 29 votes