Visual C++ Tips and Tricks
Visual C++ Tips and Tricks
Visual C++ Tips and Tricks
This section presents a collection of Visual C++ 6.0 tips w hich are often hard to find information about. All of the tips are useful in their ow n w ay, and many w ill w ork exactly as-is in Visual Studio .NET also, so take a moment to brow se through the collection.
HKCU\Software\Microsoft\Devstudio\6.0\Format\Source Window\
Inside this key there are a series of binary data items, one for each user-definable entity in the source w indow - such as comments, keyw ords, strings and normal text. Each value is made up using the same format. The first four bytes are the foreground colour, in RGBA format (3 bytes for RGB and 1 byte for padding). The background colour follow s immediately afterw ards using the same format:
[ RR GG BB xx ][ RR GG BB xx ] Foreground Background
You can use the Registry Editor to Export and Import your colour settings from machine-to-machine.
6. Column-based selection
The Visual studio editor lets you select text in a line-by-line manner. However, holding the ALT key dow n w hilst making a selection w ith the mouse causes columns of text to be selected rather than row s (lines).s
9. Display Disassembly
Whilst debugging a project, press ALT+8 to sw itch to assembler mode.
http://www.catch22.net/tuts/vctips
1/5
3/31/2011
marked positions w ithin each source-file.
You can bookmark lines of text for further reference, using the "Mark" commands. Press Ctrl+F2 to mark/unmark a line of text. Press F2 to skip between
The list of current bookmarks can be displayed by the Edit -> Bookmarks dialog or by pressing ALT+F2.
12. Callgraphs
Position the cursor over any function name and hit ALT+F12. If your project w as built w ith browse-information, a dialog w ill appear asking what you w ant to do. Select CallGraph to view a hierarchy of all sub-functions w hich are called by your function. This is a very useful feature often overlooked in Visual Studio.
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Keyboard HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Layout
Use REGEDIT to Export these registry locations to an external file, then simply Import the settings w hen you need them on any new machine.
http://www.catch22.net/tuts/vctips
2/5
3/31/2011
3. Select Code Generation from the Category combo-box. 4. In the Use run-time library drop-dow n-list, select: Debug Multithreaded DLL for Debug builds Multithreaded DLL for Release builds
Now add the follow ing line to the top of your main source file and you will have instantly smaller exes:
Description Displays the return value of a function after it returns. Display the current Win32 GetLastError value
http://www.catch22.net/tuts/vctips
3/5
3/31/2011
string,su value,hr value,wm value,x array,23 address,mb
4. Restart the IDE for the changes to take effect. Of course as soon as you accidently step into a function that you didn't w ant to be in, simply press SHIFT+F11 to step out again. Array Tip
Comments
Very Nice
Nice collection ... Looking for more ahead... Great w ork. Keep it going.. Suraj
Suraj - Tue, 04/14/2009 - 08:04
Array
Nice info...
The article is very useful. Keep it going. houses for sale |article|select comfort Array
Thank you
There are many useful commands available in the w atch w indow , w hich can alter the way variables and error values are displayed by the debugger. corporate gifts | promotional clothing | Promotional Products Array
step out
I think you need a new editor . Juicy Couture Juicy Outlet Array
I am currently working as a
I am currently w orking as a project Guide in a project guidance institution. So I have to be updated in programming. This site is my best companion in learning new things about programming. This post consists of tips and tricks, in Visual C++ 6.0 w as really a helpful one for me. All those thirty tips and tricks in visual c++ w ere really aw esome and I w ill share them w ith my students. Even though many of these tips provided in this post are so simple, such as displaying w orkspace w indow , I w as not aware about them before. Thank you so much for the great information. John | hosted PBX Array
I've been looking something like this. This article must be made in a carefull manner. Indonesia Furniture Manufacturer and Exporter :: Teak Garden
This post consists of tips and tricks, in Visual C++ 6.0 w as really a helpful one for me. All those thirty tips and tricks in visual c++ w ere really awesome and I
http://www.catch22.net/tuts/vctips
4/5
3/31/2011
Warning: Table './strobede_catch22/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/13', 'http://w w w .google.ca/url? PQzCSgt7t188zhX87GIp0fSmg', '216.16.247.154', 0, '16b9a79dddaef7bc370f7936002b59bb', 165, 1301494550) in /home/strobede/catch22/includes/database.mysqli.inc on line 128
http://www.catch22.net/tuts/vctips
5/5