STL string utils

STL’s std::string doesn’t have methods for transforming the string to upper or lower case or for trimming (as other string implementations, such as CString, have). I’ve noticed that many people don’t know how to implement such functions, so I’ll show you here how to do that. class stringutils { public: static void make_upper(std::string& text) { … Read more

End of 2007

I started this blog at the beginning of 2007 and until now I had more than 10,000 unique visits, which is pretty good, I believe. I wrote here about LINQ, C#, C++, Visual Studio, events and others. I hope they served the readers well, and I’ll try to write more during the next year. This … Read more

Sphere inside out

I was reading a book about Mobius band and I read about turning a sphere inside out, without making a hole in it. Though this appears impossible, it is actual possible when you follow some rules. Looking over the web I found a very good movie showing and explaining how it’s done. For those interested in … Read more

1st European Silverlight Challenge

INETA Europe in collaboration with Microsoft organized a competition called European Silverlight Challenge, organized on country based, with the winners from each country participating in the European final. It is based on the development of a web component or application using Silverlight for its user interface and with the only condition that it to be … Read more

Release of Visual Studio 2008

Microsoft announced yesterday that it released VS 2008 to manufacturing. For now, it is only available for MSDN subscribers. The official public release will happen on February 27, 2008 at Los Angeles. You can have an overview of the product here. You can read more about the product on the home page.

Create a font with the desired size

Let’s asume you want to change the font of a window\control and for the sake of simplicity let’s consider an MFC dialog application. In that case, there are several steps you should follow: declare a CFont variable in the dialog class create the font in OnInitDialog (using CreateFont) set the font to the control (using … Read more

Launch of Visual Studio 2008

A couple of days ago, Somasegar has announced that Microsoft is on track to release Visual Studio 2008 before the end of November 2007. On the other hand, the marketing release will take place on Februarie 27, 2008 in Los Angeles, along with Windows Server 2008 and SQL Server 2008. You can read the announcement on … Read more

F# integrated in Visual Studio

One week ago, Somasegar (Corporate VP for the Microsoft Developer Division) wrote on his blog that Microsoft will integrate F# (a functional language) in Visual Studio. We will be partnering with Don Syme and others in Microsoft Research to fully integrate the F# language into Visual Studio and continue innovating and evolving F#. In my … Read more