About charity, Microsoft may have improved, but a few years ago standard operating procedure was for the Bill and Melinda Gates foundation to tie charitable work to large Microsoft purchases. If a government bought from Microsoft, the foundation would come in and start providing assistance. If the government went to Linux, the foundation would pick up and leave.
The use of this tactic has left me with a bad impression of said foundation, despite all of the unquestioningly good work they do. (They may have gut this out more recently. I no longer pay attention to Microsoft now that it is clear that they aren't going to be able to destroy the parts of the IT world that I care about.)
Regardless of your opinions on their specific business practices, I think the OP's point still stands: its difficult at best to laude someone for giving away money that to some extent was derived illegally.
Bill Gates didn't become rich because Microsoft managed to work itself into a monopoly position with dirty tactics. The whole problem people have with Microsoft is that they abused their monopoly in one area to gain a foothold in another! They already had a virtual monopoly on desktop computers. How did they get there? By having smart people and making really good software that more or less worked everywhere.
When Microsoft started becoming evil they were already fully entrenched in the market.
How many millions of US$ would those people have donated to charity if their budgets hadn't been constrained by purchasing Microsoft software? Some of them were probably African countries that could have used that money to buy vaccines 10 years ago.
Yes, I'm sure that any money left over from a large corporation's IT budget would have gone straight into the donation budget.