Use ATL COM DLL in VB Script which written in C++
-
Hello, I am newbie to C++ and therefore I found the following example and working with it. A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012 I like to know how to use this example COM object in VB Script, I like to do it using CreateObject Method. If it currently doesn't support VB Script, how can I add VB Script support to this DLL? Thanks for your help.:thumbsup:
-
Hello, I am newbie to C++ and therefore I found the following example and working with it. A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012 I like to know how to use this example COM object in VB Script, I like to do it using CreateObject Method. If it currently doesn't support VB Script, how can I add VB Script support to this DLL? Thanks for your help.:thumbsup:
-
Thanks, I did it but I got "Could not locate automation class..." in VB Script, but using C# this works fine. I used it like
Dim Test: Set Test = WScript.CreateObject("SimpleATLComLib.SimpleCom")
Test.TotalMarks = 50
because I don't know how to get automation class name to be used in VB Script from that DLL. Why this error occurs?
-
Thanks, I did it but I got "Could not locate automation class..." in VB Script, but using C# this works fine. I used it like
Dim Test: Set Test = WScript.CreateObject("SimpleATLComLib.SimpleCom")
Test.TotalMarks = 50
because I don't know how to get automation class name to be used in VB Script from that DLL. Why this error occurs?