Search this forum for dlls and vb, it has been explained quite a few times. It will do if you know C. We won't write the code for you.