Hi!

I have made an ATL ActiveX Control for use in Pocket IE. I used the
ATL wizard in eVC++ 3.0 to make a "Full Control". I have implemented
IObjectSafty and the following works:

<script language="jscript" id="q">
var obj = new ActiveXObject("Test.Lite");
obj.TestMethod();
</script>

But when I try to create the object using a OBJECT-tag I run into
problems. Pocket IE stops executing at the OBJECT tag with no error
message.

<object CLASSID="clsid:F24D35F0-65CA-4509-9F93-D2EAED48771E" ID=obj>
</object>
<script language="jscript" id="q">
obj.TestMethod();
window.alert("Hello world!");
</script>

In the above case TestMethod() is not exceuted nor is the "Hello
world!" message displayed.

Has anyone had this problem and solved it?

Regards,
Johan

Re: OBJECT tag in Pocket IE doesn't work for eVC++ ATL ActiveX Control by Jay

Jay
Thu Feb 05 14:02:27 CST 2004

Have you verified that the correct registry entries exist (for the CLSID)
and that they point to your DLL implementation?

Also, have you verified that the DLL that implements the object is being
loaded? If so, are interfaces being queried on the object?

Could be one of many problems, first we need to determine if there is an
installation or syntax problem (seeing if the DLL is being loaded), or an
implemenation problem (interface implemetation "correct").

--
Jay McLain [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.

"Johan" <franson@hotmail.com> wrote in message
news:446a1750.0402050115.38757e9d@posting.google.com...
> Hi!
>
> I have made an ATL ActiveX Control for use in Pocket IE. I used the
> ATL wizard in eVC++ 3.0 to make a "Full Control". I have implemented
> IObjectSafty and the following works:
>
> <script language="jscript" id="q">
> var obj = new ActiveXObject("Test.Lite");
> obj.TestMethod();
> </script>
>
> But when I try to create the object using a OBJECT-tag I run into
> problems. Pocket IE stops executing at the OBJECT tag with no error
> message.
>
> <object CLASSID="clsid:F24D35F0-65CA-4509-9F93-D2EAED48771E" ID=obj>
> </object>
> <script language="jscript" id="q">
> obj.TestMethod();
> window.alert("Hello world!");
> </script>
>
> In the above case TestMethod() is not exceuted nor is the "Hello
> world!" message displayed.
>
> Has anyone had this problem and solved it?
>
> Regards,
> Johan