Monthly Archive for December, 2011

Visual Studio: Improved navigation through the files with RockScroll

If you have never used RockScroll you are probably most comfortable with standard scrollbar Visual Studio offers. I guarantee you, however, that the moment you install RockScroll and work with it for a while, you will miss it a lot if you switch to Visual Studio that’s not extended with it. I’ve experienced that many times when kneeled at a teammate’s desk trying to help him move on with their task. This is probably best moment when you will realize that Visual Studio misses a thing without RockScroll icon smile Visual Studio: Improved navigation through the files with RockScroll

Here are most important pros that make me think RockScroll is must-have plugin for Visual Studio:

Continue reading ‘Visual Studio: Improved navigation through the files with RockScroll’

C++: Overriding methods – problem with hiding overloads in the base class

What is the outcome of the simple program below?

#include <iostream>
#include <conio.h>

using namespace std;

class Base
{
public:
   void DoSth(int tmp)
   {
	   cout < < "Base::DoSth(int)\n";
   }

   void DoSth(char tmp)
   {
	   cout << "Base::DoSth(char)\n";
   }
};

class Derived : public Base
{
public:
   void DoSth(int tmp)
   {
	   cout << "Derived:DoSth(int)\n";
   }
};

int main()
{
	Derived d;
	d.DoSth(5);
	d.DoSth('c');

	getch();
    return 0;
}

Continue reading 'C++: Overriding methods – problem with hiding overloads in the base class'