LMAET05A - 77 CHAPTER 1 Advanced PWB Techniques \z...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
77 CHAPTER 1 \z "ADVANW.DOC-1001" \z "ADVANW.DOC-1002" This chapter introduces you to some of the powerful features in the Programmer’s WorkBench. It is not an exhaustive discussion of all the ways to use PWB. However, it can provide a starting point for you to begin your own investigation of PWB using the information in the Microsoft Advisor and in Chapter 7, “Programmer’s WorkBench Reference.” This chapter contains: u Find and search-and-replace techniques, including marks and regular expressions. u How to use the PWB Source Browser. u How to execute PWB functions and macros. u An overview of PWB macros, macro recording, and the macro language. Searching with PWB \z "ADVANW.DOC-1003" \z "ADVANW.DOC-1004" PWB offers the following ways to search your files for information: \z "ADVANW.DOC-1005" u Visually inspecting code, moving with the cursor or the PGUP and PGDN keys. This method is most effective either when you are familiarizing yourself with some old code or after you have switched from CodeView back to PWB and want to examine the local impact of a proposed change. \z "ADVANW.DOC-1006" \z "ADVANW.DOC-1007" \z "ADVANW.DOC-1008" u Searching with text strings. When you have a specific string in mind (for example, FileName ), you can find, in sequence, all the references to the name in your file. \z "ADVANW.DOC-1009" u Searching with regular expressions. Regular expressions describe patterns of text. This is useful when you have a number of similarly named program symbols and you’d like to see them all in succession. Advanced PWB Techniques Filename: c9387c7b787ef4599d1e47c8039954e24f59375a.DOC Project: Template: Author: Last Saved By: Revision #: 0 Page: 77 of 30 Printed: 10/28/92 07:42 A10/P10
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Environment and Tools \z "ADVANW.DOC-1010" \z "ADVANW.DOC-1011" \z "ADVANW.DOC-1012" For example, Windows API (application programming interface) names are made up of multiple words; the start of each new word is shown as a capital letter (for example, GetTextMetrics). With this in mind, you might search for a string optionally starting with spaces and the letters “GetText” followed by any uppercase letter. This is expressed with a regular expression such as *GetText[A-Z] , which means zero or more spaces (using the * operator after a space), followed by GetText , followed by any uppercase letter (using a character class). \z "ADVANW.DOC-1013" \z "ADVANW.DOC-1014" \z "ADVANW.DOC-1015" \z "ADVANW.DOC-1016" \z "ADVANW.DOC-1017" u Searching multiple files with text strings or regular expressions. A multifile search is called a “logged search.” Instead of finding one match, PWB finds all matches in one operation. You can then browse the results of the search. \z "ADVANW.DOC-1018"
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.

Page1 / 30

LMAET05A - 77 CHAPTER 1 Advanced PWB Techniques \z...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online