Home

Code Corner

Bookshelf

Websites

Hire Kenny

Code Corner - Tools

I often write small tools or programs either because I can't find the right tool for a specific job or because I think it might be interesting/educational to do so. Here I am collecting any tools I write from now on.

 

VSS Working Folders Cleaner (Feb 2002)

Icon Browser: An Exercise in Resource Management (Dec 2001)

Test Studio .NET: Putting .NET to the Test (6 Nov 2001)

Display Logon Server (3 Nov 2001)

 

VSS Working Folders Cleaner (Feb 2002)

Download the code and app: VssWorkingFoldersCleaner.zip

I've been using SourceSafe for as long as I can remember. When you have a large database and developing for multiple platforms or are using multiple compilers its often the case that your working folders get a bit disorganised. I used to use a script that I wrote to clear the working folders, but recently wrote a little Windows Forms application called the VSS Working Folders Cleaner using the .NET Framework that does the job nicely.

 

 

Icon Browser: An Exercise in Resource Management (Dec 2001)

The System.Runtime.InteropServices namespace contains many useful classes, structures and attributes that you can use to access your legacy libraries and resources. The .NET Framework as a whole also provides many services for migrating existing code and resources to managed code. This article explains how to use these services to extract resources from Win32 resource files as well as how to write icon resources to .ICO files. It also covers many of the issues surrounding resource management and interoperating with unmanaged code, memory and binary formats. More...

 

Test Studio .NET: Putting .NET to the Test (6 Nov 2001)

Test Studio is a desktop application I am writing to see just how much I can do with .NET. An important requirement is that Test Studio must be a realistic application, not some tool you whip up over the weekend with the Forms Designer. As it doesn't pay the bills I work on Test Studio in my spare time. So check back every now and then to see how its coming along. I sure wish it would pay the bills as its a lot of fun! More...

 

Display Logon Server (3 Nov 2001)

Download the code: DisplayLogonServer.zip
Download the app: DisplayLogonServer.exe.zip
Download the VC6 code: DisplayLogonServerVC6.zip

I've often found this little tool useful for debugging Windows NT domain authentication problems. My friend Nigel Basel actually wrote the original version of this little application. But when I needed it in a hurry I couldn't find his version anywhere so I wrote it myself. The magic API in question is NetWkstaUserGetInfo.

I originally wrote it for Visual C++ 6. The source code is a bit neater (I was in a bit of a hurry porting it), and the binary is much smaller. The reason is that in the VC6 version I don't use the CRT and I did a few things to optimize for size. The version of Visual C++ 7 that I have doesn't allow optimizing.

 

kennykerr@hotmail.com