It's important to include all resources required for the posted snippet to function. I see you call the use of a DLL, yet have no link to the DLL, nor is it included with the snippet. Along with multiple executables, and sound files.
Be sure to "mainstream" your code so it doesn't require an enormous amount of adaptation to operate even partially proper. Personal code make bad snippets to share for that very reason.
Yes, and please title your snippets and descriptions with proper case and punctuation. Using all lowercase looks very sloppy. Just put a little more effort into your posts.