Again this is quite easy, but you must remember some important steps
(1) Firstly, your program must be fully debugged and working before attempting optimisations. Use this test code if you are just testing.
(2) Next go back to
Project > "SolutionName" Properties. Now after selecting
Configuration Properties, change the configuration from
release. You must change the output directories to the C drive again even though you have done so before (for debug config). Check getting started to refresh your memory.
(3) Now simply select
Build > Profile Guided Optimization > Instrument
Run Instrumented/Optimized Applicationin order. You should see that your code will run rather quicker than before!
Making a new class
Including NAG dll