Sunday, August 31, 2008

visual studio 2005

While searching for avoiding warnings in visual studio i came to know that when we double click on the warning or any error, it navigates us to the actual code due to which the warning or error has occured. Good info!!

To avoid warnings we can write a macro

#pragma warning (disable: 6011)

in the source file.

The code to treat warning as error is,
#pragma warning (error: 6260)

This is for a particular source file. Now i have to find it for the a project containing many source files.

2 comments:

AnAnD said...
This comment has been removed by the author.
AnAnD said...

hey nice info.....
btw u working on c++ at amdocs or is it just an amateur practice?