Cleaning up those CRT warnings in Visual Studio

When you need to clean up the CRT warnings about unsecure functions, like printf or sprintf, in favor for secure functions like printf_s or sprintf_s, you don’t have to scour through all of your code to clean up the warnings. You can declare the following for Visual Studio builds and the functions are overridden with … Read more

Using regex to replace a path

This is for me, not you, a reference for me. So if you are wondering why I wrote this… it’s because it’s for me. Here is a regex string I used in TextWrangler to search and replace paths in a Xcode project file… you know, the one that is inside the .xcodeproj bundle… Search string: … Read more

Dumping file names to a file

I have a PC and a Mac that I work with, but mostly I use the Mac. Of course on the Mac, you can do a lot with the Terminal.app and Bash. For example, you can dump out a file listing into a text file: ls *.cpp > ../implementation_files.txt

Xcode 3.1 and Perforce

I use Perforce and I love it! Over the years I’ve used Visual SourceSafe, CVS, SVN and I experimented with other tools, but none of them have come close to the usefulness of Perforce. I also use Xcode for my Mac coding but when you use Xcode with Perforce, you get some wierd behaviour. Xcode … Read more