B
BABB55B7-D59B-432C-B429-FAD0203C05A7
Guest
I have been searching for literally days for a working recipe to create a COM object in C# that is callable from vbscript. Assume the signature for the C# function is something simple like:
int ComExampleFunction(string parameter1, string parameter2)
and the vbscript something simple like:
dim objTest, intResult
Set objTest = WScript.CreateObject ("ComExampleNamespace.ComExampleClass")
intResult = objTest.ComExampleFunction ("string1", "string2")
Wscript.echo "Result = " & intResult
I am using VisualStudio 2019 but if COM is no longer supported there, I can revert to 2017.
If you know of a working recipe I sure would appreciate a pointer to it.
For example the latest example I tried ends up with error 80040154 on line 2 of the above script.
Continue reading...
int ComExampleFunction(string parameter1, string parameter2)
and the vbscript something simple like:
dim objTest, intResult
Set objTest = WScript.CreateObject ("ComExampleNamespace.ComExampleClass")
intResult = objTest.ComExampleFunction ("string1", "string2")
Wscript.echo "Result = " & intResult
I am using VisualStudio 2019 but if COM is no longer supported there, I can revert to 2017.
If you know of a working recipe I sure would appreciate a pointer to it.
For example the latest example I tried ends up with error 80040154 on line 2 of the above script.
Continue reading...