Hi Eric Thanks for your reply. I got an answer from StackOverflow.com, which pointed out that I had used the wrong library. As to Microsoft documentation, I found nothing helpful. Much appreciated. Nick