0

I need to call some C++ functions from JavaScript. I followed the steps in How to create an ActiveX that can be used in a Javascript engine and I created an ActiveX object using the ATL C++ techniques in Visual Studio. The problem is that when I go to invoke the JScript I get the error "Automation server can't create object" Code: 800A01AD.

Does anyone know if I'm missing something?

Community
  • 1
  • 1
Billy
  • 1

1 Answers1

0

To quote an already good answer:

The error "Automation Server Can't Create Object" means that your browser's security settings are too low for the ActiveX control to run. You have to move your page into the trusted sites list and lower the ActiveX settings so it can run.

Personally I would avoid ActiveX like the plague since it is locking you into the IE only world.

Community
  • 1
  • 1
Danny Beckett
  • 20,529
  • 24
  • 107
  • 134
  • I agree, you are better off searching for some multi-platform alternatives. ActiveX will only work in IE, after the user accepts a bunch of security warnings. I would look into WebKit/Qt, it might have what you are looking for (although, I've never used it so I can't be sure). – Lochemage Jul 05 '13 at 16:42