gaxar77 Posted September 29, 2019 Posted September 29, 2019 First, let me say that this is an amazing forum. I don't know who built it or if you are using existing forum software but the interface and everything is amazing. I didn't know where to put this since I can't post in the support forum. So I posted it here. If this is the wrong place just forgive me and let me know so I can not make that same mistake in the future. I am having a problem. I cannot instantiate a COM class I made in C++. The class is in the library ATLProject3Lib and is called Greeter. When I call ObjCreate("ATLProject3Lib.Greeter") and then call $greeter.Greet("Someone") I get an error that the variable must contain an object. Now I successfully registered the COM DLL and can use it from C#. So I don't know what the problem is. Basically, I am trying to learn how to create COM components in C++ that I can use from AutoIt and other languages. Can someone help? Thanks.
gaxar77 Posted September 29, 2019 Author Posted September 29, 2019 I resolved the problem. I was supposed to add registration of the ProgID and CLSID under HKEY_CLASSES_ROOT. I did so, and it worked.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now