This snippet can be used to convert from bases between 2 & 16 to base between 2 & 16.
This is an extension on converting decimal to any base snippet found here: http://www.daniweb.com/code/snippet1067.html
(By no means is this the best method of doing this, but provides rather a nice way)