CreateObject vs. New ActiveXObject
-
Well - I'm not sure exactly where this question belongs, but I'll try here first. I've got a control inside a dll called pRaiseBox.dll - created in VB6. Originally, this control was called by a Win32 VB app using the createobject method. I can also create it in VB script just fine: 'works just fine dim box set box = CreateObject("pRaiseBox.cRaiseBox") dim reason reason = box.showform() 'works just fine Now I am trying to use this same control, but I am trying to instantiate it via Javascript: var TextEntryBox = new ActiveXObject("pRaiseBox.cRaiseBox"); //works var NoteReason = TextEntryBox.showform(); //box pops up but hangs but when I show the form, it hangs. By that I mean the control is visible, but if I put the mouse over it, I get nothing but an hourglass and ultimately I have to kill the browser. I'm not sure of the differences between CreateObject and new ActiveXObject (from what I can tell, there's very little), but can anyone think of any reason this might happen? Perhaps I need to recompile this dll with a different setting in the project? Thanks! Marcus
Marcus Spitzmiller You will never hear me say, "I listen to pretty much everything." That is for people who don't care what goes in their ears.