If you want to use the function like a global function in your standard exe, you should set the instancing property of the class in the activex dll to GlobalMultiUse. In your standard exe add a reference to the dll.