ActiveX "breaks" Pocket IE

Ive created a very basic ActiveX control that will run in Pocket IE 2002, however after viewing HTML embedding my control, I experience problems when attempting to load another page. When I load another page, the form elements (buttons, edit boxes, etc) from the page embedding my control stick, overlaying the content on the new page. These elements refuse to go away, regardless of how I try to refresh the browser. Its worth noting that the GUI of the ActiveX itself properly excuses itself from the screen when loading a new page. I also can not get PIE to close after my control has been executed.

The control is MFC-based and built with eVC++ 3. Aside from implementing the IObjectSafety interface (ripped from MSs SafeCtl example) the code is nothing more that the basic code generated by class wizard. The problem appears in both the PPC 2002 emulator and on a PPC 2002 iPAQ. Ive read of another developer experiencing this problem with his MFC control, but then he switched to ATL and the problem disappeared.

Does anyone have suggestions? Has anyone out there developed an MFC control that doesnt have this problem in PIE 2002?

Thanks,
Jeremy
[1191 byte] By [Jeremy Johnson] at [2007-11-18 6:09:20]
# 1 Re: ActiveX "breaks" Pocket IE
We have redeemed one of our MSDN assistance requests and have had Microsoft researching the ill behavior of MFC-based ActiveX controls for over a month now. Thus far, their answer is to use ATL, not MFC. Also be sure to implement the IObjectSafety interface and declare your control as "Safe for Scripting", for without it the control will not operate within PIE.

See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppc2k/html/ppc_pie.asp


.:j:.
Jeremy Johnson at 2007-11-9 12:36:36 >
# 2 Re: ActiveX "breaks" Pocket IE
ActiveX has had major issues as far as I know with * ANY * MFC based apps in PPC development. MS can research all they like, I doubt it will work any time soon.. POS!
alanr at 2007-11-9 12:37:36 >