I have a DLL (written in C #) containing a class with 2 constructors; the default constructor (without arguments) and the other with three arguments.
In VBscript, I want to call the second constructor, but CreateObject only gets the classValue parameter classValue no possible arguments .
I assume that the base implementation of CreateObject uses the system function CoCreateObject , which according to this answer does not support arguments, but, on the other hand, QTP / UFT DotNetFactory , which is capable of such a thing, so there should be a way to do this in pure VBscript.
(I want to avoid the obvious solution to the init method, if possible).
Any ideas on how to call my constructor different from the standard?
Elist source share