Click here to Skip to main content
15,390,470 members
Articles / Programming Languages / C++
Posted 16 Sep 2002


53 bookmarked

Tips for Visual C++ Developers

Rate me:
Please Sign up or sign in to vote.
4.53/5 (14 votes)
16 Sep 20021 min read
Series of tips for Visual C++ Developers


These are a collection of tips that I found really useful for VC++ developers. This collection of tips uses the explorer shell to execute batch commands. To use these tips, you only need to merge the .reg file (using Microsoft Explorer), then the new command will be available for you to use.


The first tips helps to register/unregister ActiveX/COM component on your computer. Someone else posted a similar article a while ago, but now at least you can download it here. This tip can be used when you right click on a DLL file to register or unregister your component. The section for dependency walker (Depends.exe) is not really necessary since Depends will automatically add these to your registry.




@="Regsvr32.exe %1"


@="Regsvr32.exe /u %1"

[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies]

[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command]
@="DEPENDS.EXE /dde"

[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\ddeexec]

Delete Temporary files

This next tip allows you to delete most of the temporary files created with VC++. You can add other files in this list too. Class Wizard file (.clw) was not included in this list since it can useful for most of us. To use this tips, you will have to right click on a "folder" this time. It will delete all VC++ temporary files including sub directories.


[HKEY_CLASSES_ROOT\Folder\shell\Delete Temp VC++ files]

[HKEY_CLASSES_ROOT\Folder\shell\Delete Temp VC++ files\command]
@="\"cmd.exe\" \"/c del /s *.obj,*.res;*.pch;*.pdb;*.tlb;*.idb;*.ilk;

Rebuild from Explorer

This tip allows you to build your project from Explorer. This is really cool if you don't have too many configurations. Just right click a DSP or DSW file to do it; presto! This tip was first inspired by a joke, but now at least we all can laugh! :-)


[HKEY_CLASSES_ROOT\dspfile\shell\Rebuild All]

[HKEY_CLASSES_ROOT\dspfile\shell\Rebuild All\command]
@="\"Cmd.exe\" \"/C Start MSDev %1 /REBUILD /MAKE ALL\""

[HKEY_CLASSES_ROOT\dswfile\shell\Rebuild All]

[HKEY_CLASSES_ROOT\dswfile\shell\Rebuild All\command]
@="\"Cmd.exe\" \"/C Start MSDev %1 /REBUILD /MAKE ALL\""


I hope you enjoyed these tips. My favorite is "Delete Temp VC++ files", which one is yours?


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


About the Author

Ernest Laurentin
Software Developer (Senior)
United States United States
Ernest is a multi-discipline software engineer.
Skilled at software design and development for all Windows platforms.
Interests: User Interface, GDI/GDI+, Scripting, Android, iOS, Windows Mobile.
Programming Skills: C/C++, C#, Java (Android), VB and ASP.NET.

I hope you will enjoy my contributions.

Comments and Discussions

GeneralVery good Pin
sajeeshmohanp1-Mar-11 19:27
Membersajeeshmohanp1-Mar-11 19:27 
GeneralRe: Very good Pin
Ernest Laurentin2-Mar-11 13:21
MemberErnest Laurentin2-Mar-11 13:21 
GeneralRegister/unregister for OCXs Pin
Ammar23-Sep-02 18:38
MemberAmmar23-Sep-02 18:38 
GeneralRe: Register/unregister for OCXs Pin
Ernest Laurentin24-Sep-02 17:34
MemberErnest Laurentin24-Sep-02 17:34 
GeneralRe: Register/unregister for OCXs Pin
Ammar24-Sep-02 19:10
MemberAmmar24-Sep-02 19:10 
QuestionVS.NET version? Pin
Anonymous23-Sep-02 6:48
MemberAnonymous23-Sep-02 6:48 
AnswerRe: VS.NET version? Pin
Gary Wheeler24-Sep-02 1:34
MemberGary Wheeler24-Sep-02 1:34 
GeneralNice :-) Pin
Nish Nishant20-Sep-02 14:58
sitebuilderNish Nishant20-Sep-02 14:58 
GeneralRe: Nice :-) Pin
Ernest Laurentin20-Sep-02 19:40
MemberErnest Laurentin20-Sep-02 19:40 
GeneralDirectory cleaner Pin
Ernest Laurentin18-Sep-02 4:44
MemberErnest Laurentin18-Sep-02 4:44 
GeneralVery useful Pin
Michael P Butler17-Sep-02 22:33
MemberMichael P Butler17-Sep-02 22:33 
GeneralRe: Very useful Pin
Ernest Laurentin18-Sep-02 4:33
MemberErnest Laurentin18-Sep-02 4:33 
GeneralFastest rated article Pin
Ernest Laurentin17-Sep-02 6:40
MemberErnest Laurentin17-Sep-02 6:40 
GeneralRe: Fastest rated article Pin
Nemanja Trifunovic17-Sep-02 7:09
MemberNemanja Trifunovic17-Sep-02 7:09 
GeneralRe: Fastest rated article Pin
Ernest Laurentin17-Sep-02 7:28
MemberErnest Laurentin17-Sep-02 7:28 
GeneralRe: Fastest rated article Pin
Brigg Thorp17-Sep-02 7:37
MemberBrigg Thorp17-Sep-02 7:37 
GeneralRe: Fastest rated article Pin
Ernest Laurentin17-Sep-02 7:54
MemberErnest Laurentin17-Sep-02 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.