Igor Tandetnik's comment pointed me to the correct direction. The article I used shows how to SetScriptSite but it's written in c. This question: How to load & call a VBScript function from within C++ has a very helpful answer. As that answer says, what you should do is define...