Worked like a charm. Thanks for your help.
I did a quick search about why this causes a problem at runtime. But didn't come up with much. I'm randomly guessing that it has something to do with conflicting prototypes (COM/.NET). ?
That was a very quick response. Thanks Lee.
thank you, thank you, thank you! your post about setting "embed interop types" to false solved my problem.