View Full Version : What exactly does "new ActiveXObject("ProgID");" do?

Nov 22nd, 2009, 07:58 PM

I am wanting to know exactly what happens when you create an ActiveXObject. At the moment all I managed to find out is that it will run the Program specified by the ProgID:

This code starts the application creating the object (in this case, a Microsoft Excel worksheet). Once an object is created, you refer to it in code using the object variable you defined.

Does it load the program like normal or does it load it within IE's memory? For example if the program crashes then why does IE crash. I would ask more questions but really I am sure there is more to it than simply loading the program.

Thanks for any help in helping me get a better understanding.