Merged with How to enable Profiling under Microsoft Visual C++ 6.0.
I use Microsoft Visual C++ 6.0
For a particular project which I have, under the the "Project" tab, i see there is one menu - "Profile", but when I click on it, it says - Enable the profiling in project settings.
So to "Enable Profiling", when I check under under Project Settings-->Link-->Category General-->Enable profiling seems to be disabled. I cannot check the check box there.
I have seen this profiling working under Microsoft Visual C++ 6.0 earlier where it gives CPU cycles consumed while running a program at end of its completiong.
How can i enable this profiling?
Does it need any extra file/dll to be copied in the installation folder of the tool or something?
thank you.
-AD
Related
Older versions of Visual Studio had an ability to turn off the exclusion of small functions from instrumentation for performance profiling.
Frustratingly, I can't find the option in Visual Studio 2019, even though in the Output pane I see the message:
Info VSP3049: Small functions will be excluded from instrumentation.
How can I disable this option?
You get it by clicking the gear icon next to the Instrumentation option:
I have a windows form project and I want to create an installation package for this project. How can I create a setup file in Visual Studio 2012 ? My project is without data base.
How to create a Setup package using Visual Studio 2012.NET?
Microsoft released the Visual Studio Installer Project extension in April of this year, the catch is it's for VS2013, not VS2012.
http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx
The 'lite' InstallShield option remains in VS if you need something with more flexibility.
Advanced Installer also has a free version that includes an extension for VS. This is a commercial tool but the extension is included in the free edition as I said, for more advanced features you need to purchase a Professional or higher licenses and edit the project direct from Advanced Installer GUI, not from VS. (but you can still use the project in the VS solution, so you get the MSI built at the end of your build process)
Visual Studio setup projects (vdproj) are not supplied with VS 2012
There are several solutions for you:
You could use InstallShield instead.
If you don't want or
can't use InstallShield for any reason, you could try WiX. This
toolset builds Windows installation packages from XML source code.
If you only use Windows Presentation Foundation (.xbap), Windows Forms (.exe), console application (.exe), or Office solution (.dll) you could look at ClickOnce. To use this you should right click on the project file in the solution explorer and select "Publish" from the pop-up menu.
Alternatively you can use previous version of Visual Studio (2010).
I can't seem to access the Architecture Tools available in Visual Studio 2012 Premium Version 11.0.60610.01 Update 4 using .Net Version 4.5.50709
My only visible menu options on startup are:
FILE
EDIT
VIEW
DEBUG
TEAM
SQL
TOOLS
TEST
ANALYZE
WINDOW
HELP
And with a project open these two extra items appear:
PROJECT
BUILD
There is nothing under the any of the menus related to Architecture Tools except for
VIEW > Toolbars > Architecture Designers
The Architecture Designers toobar's buttons are all grayed out when enabled.
Do I need to do something extra after the Visual Studio 2012 install to make them show up?
Does it only work for certain types of projects (I am trying to make an MVC4 project)? Does it have to be enabled on a per-project basis?
Is there a difference between how the Architecture tools work in Premium vs Ultimate?
Isn't it only available in VS 2012 Ultimate? (which used to be called "Architecture Edition".)
I have a VC++ (unmanaged) project to which I added performance counters using manifest method. Everything is working great and I even have build steps that do manifest compilation and automatic registration using lodctr.exe tool with /m:manifest switch.
The problem that I'm running into is that I now need to make installer (VS2008 Installer project) do registration on install (unregistration on uninstall).
I tried to set it up by having a custom action that referenced lodctr.exe tool with CustomActionData set to /m:[TARGETDIR]PerfMon.manifest and similar setup using unlodctr.exe for custom uninstall action.
When installer runs, I do see a brief flash of cmd window (which is ok), but counters are not getting registered. I ran SysInternals' ProcMon tool, and I don't see lodctr.exe process even created.
I tested that running lodctr.exe manually on target machine registers the counters.
I googled for an example or explanation how to do it with Visual Studio installer project, but came up empty. It has some .NET oriented examples, but nothing for unmanaged, hard and cold VC++...
How can I register performance counters manifest using installer project?
Visual Studio installer project has very limited functionality. Starting from Visual Studio 2012 Visual Studio installer project is not supported, you should consider to use Windows Installer XML (WIX) instead.
Include your manifest into WIX project and use WIX's PerfCounterManifest with it.
I use Microsoft Visual C++ 6.0 For a particular project which I have, under the the "Project" tab, i see there is one menu - "Profile", but when I click on it, it says - Enable the profiling in project settings. So to "Enable Profiling", when I check under under Project Settings-->Link-->Category General-->Enable profiling seems to be disabled. I cannot check the check box there.
I have seen this profiling working under Microsoft Visual C++ 6.0 earlier where it gives CPU cycles consumed while running a program at end of its completiong.
How can i enable this profiling?
Does it need any extra file/dll to be copied in the installation folder of the tool or something?
thank you.
-AD
Have you got the Standard edition of Visual C++? Profiling is only supported in the Professional and Enterprise editions.