Find/Replace in Visual Studio using regular expressions

Find/Replace in Visual Studio using regular expressions

Usually Find/Replace gets the job done for what I need, although sometimes using “Replace All” can break more stuff that it fixes. But today I had this function I wanted to get rid of and simple change it with a public variable. So I had something like this. object->setLayer(/*BLABAL BLA CODE, */); I want to [...]

Basalt code swarm

Basalt code swarm

I discovered code swarm a while ago and decided to test on my own repositories. This is a test on Basalt, and although I’ve been working on the engine since January 2010, only in 2011 did I placed in on a repository so a bunch of stuff is added right on the beginning. This is [...]

So where is that motivation?

So where is that motivation?

I follow a couple of dev blogs, some are game developers, others make websites or software. In the last couple of months I’ve been reading a lot of them complaining about lack of motivation to develop their idea of the lack of motivation for development in general. Happens to me too, heck it happens to [...]

Viewing Windows Phone 7 Marketplace on the simulator

Viewing Windows Phone 7 Marketplace on the simulator

Since I’m out of the countries where WP7 Marketplace is available it’s been a real pain to check out new games and most of all if Vizati was already available. Btw it’s out there, go give it a try, there’s a trial mode. It’s great fun So searching some forums I found a neat code [...]

Tracking memory leaks in Visual Studio

Tracking memory leaks in Visual Studio

I just discovered this useful piece of code for all who don’t have (including me) any memory leaks tracking code or software. I know there are other and better solution but this can be handy for quick findings without much hassle. First place this code in your entry point file, generally main.cpp inside your main() [...]

Using Isolated Storage to save/load files on Windows Phone 7

Using Isolated Storage to save/load files on Windows Phone 7

I’m seeing a lot of forum threads with people asking how to save/load files on Windows Phone 7, well for XNA 4 in general. You can use IsolatedStorage for that using System.IO.IsolatedStorage; Both save and load can be done by creating a IsolatedStorageFile, I then use a Filestream and write with a binaryWriter IsolatedStorageFile store [...]

Instance based Callbacks in C++

Instance based Callbacks in C++

One of the things that was probably forgotten but the dudes who made C++ standard were callbacks, there’s no out of the box solution for Instance based Callbacks, just for functions. When I moved to C# I was really happy with the way delegates work, it’s simple, easy and most of all, it works. On [...]

Testing the new Visual Studio 2010 features

Testing the new Visual Studio 2010 features

Yesterday was an exciting one for all sorts of developers around the world. Visual Studio 2010 got available for both MSDN and DreamSpark subscribers. First time I installed VS2010 was in the RC form mainly because of WP7 Developer’s Tools and XNA4.0 but haven’t made many investment in searching for new features. But being available [...]

Write better code using FxCop

Write better code using FxCop

Microsoft FxCop, know what this is all about? Good for you, keep using it, It’s a valuable tool. For those who don’t know you can download it here and read the MSDN documentation here. FxCop is a is an application that analyzes managed code assemblies and reports information about the assemblies, such as possible design, [...]

C# foreach VS for loop

When I started using C#, mainly because of XNA one of the things I got used to write is foreach loops instead of for, seemed easier and it’s a much cleaner code. Doing almost the same thing as a for loop I never really bother to see the differences, almost everyone in their XNA examples [...]

Page 1 of 212