Change foreground & background color of text using Visual Studio C++

Gallery

#include <iostream>#include <windows.h> using namespace std; int main(){  HANDLE  hConsole;   hConsole = GetStdHandle(STD_OUTPUT_HANDLE);  for(int i = 0; i < 255; i ++)  {    SetConsoleTextAttribute(hConsole, i);    cout<<i<<“\t This is testing string…”<<endl;  }  return 0;} Advertisements

Incremental Linking (LNK1123) error in VS2010 while building project

Gallery

Question: What is Incremental Linking in Visual Studio 2010? Answer: Please study given link to understand Incremental Linking in visual studio 2010.[Link] http://msdn.microsoft.com/en-us/library/4khtbfyf(v=vs.100).aspx Question: How error looks like while building project on visual studio? Answer: Build error will be looks … Continue reading