Enable COM interoperability in your VB project and call the function in the EXE just as you would in my example.