This is nothing special, Just the first DLL and userlib iv ever done so I wanted to post it.
Try reading my post first please :P
Anyway It seems I got the case statement wrong way round, so at the moment the last two paramaters in my DLL are the wrong way round, ill fix that though.