Public Group

# NVidia PerfHUD in VSExpress 2005

This topic is 3810 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, I'm looking to get PerfHUD 5.2 working directly with Visual C++ Express 2005 as there seems to be few/no articles about it on the net. Currently i have to drag and drop the built exe file onto the PerfHUD icon or run the NVPerfHUD command directly from the command line. Obviously this is a bit of a pain so if someone could enlighten me as to how i go about running the program with perfHUD through VS it would be greatly appreciated. thanks in advance, Mark.

*bump

##### Share on other sites
Go to Tools>External Tools and choose Add then give it a good title "NVidia perfHUD". In the Command box, point it to the NVidia perfHUD exe (not your exe). You will want to pass your exe as an argument, so in the Arguments box enter $(TargetPath) (no quotes). You will also probably need to set the Initial Directory to$(TargetDir) or \$(ProjectDir). Then, use the "Move Up" button to move the new tool to the top of the list. Click Ok.

Now, add it to the Debug toolbar (where it logically belongs). To do that, go to Tools>Customize... then from the Categories list (the list to the left) select Tools, then from the list to the right look for "External Command 1" (it's 1 because we moved NVidia PerfHUD to the top of the list earlier), then drag it and drop it on one of the visible toolbars (the Debug toolbar is the most reasonable choice).

At this point, you can click on the newly added toolbar item to launch NVidia perfHUD with your exe. But you will probably want to add a keyboard shortcut to it. To do that, go to Tools>Options, and from the left select Environment>Keyboard. Now, in the text box titled "Show commands containing:", enter ExternalCommand1. This will narrow down the list to one item (which is the one we need). Then give it an intuitive shortcut (I use Ctrl+Alt+N and select Global from the "Use new shortcut in:" combo).

Then, to make it look nice, customize the toolbar button and give it an image instead of having its title displayed. I recommend you grab the icon from the NVidia PerfHUD exe, convert it to a bitmap and use that.

And you're done. Phew! Boy you owe me one :D

1. 1
2. 2
Rutin
22
3. 3
4. 4
JoeJ
17
5. 5

• 14
• 30
• 13
• 11
• 11
• ### Forum Statistics

• Total Topics
631774
• Total Posts
3002297
×