This is a very strange issue for me.
I downloaded a COM samples directly from Microsoft "All-In-One Code Framework" series in two versions: EXE (out-of-process COM) and DLL (in-process).
I used the C++ samples. I am able to compile both. Both are registered as well.
I am able to use the EXE object via a VBScript client. However, I change the client to use the DLL one, and I get the following error:
ActiveX Component Cannot Create Object
My system is Windows 7 64-bit. The COM components are 32-bit, however for the EXE component the client works with both 32-bit and 64-bit Script Hosts, while the DLL component works with neither of them.
How can I script the DLL one as well?