Click to See Complete Forum and Search --> : Why ActiveX Control cause error in IE!!


Zhuoran
September 28th, 2000, 06:28 AM
Sorry,my english is very pool.
I using VC to create an ActiveX Control and used it in web page;in this control,i use "Create" member function of CTreeCtrl at "WM_CREATE" message handle to create a embed tree in it and provide many method such as "CreateItem","DeleteItem",in VC's dialog it works OK,but when i use it in web page,it cause an error.because the OnCreate not execute yet.
In Microsoft document,I know if you want a control work better,you must implement some interface,but i don't know how to do that.Does onlyone can help me or give me some code?
Thanks.

……………………………………………………………………………………
.--.
/.-. '----------.
\'-' .--"--""-"-'
'--'
……………………………………………………………………………………

Konst
October 14th, 2000, 07:27 AM
Im'not sure this is that you need, but look here
(CodeGuru) on section atl-com-activex/ActiveX Control Tutorial, Control Persistence paragraph. Navin Cohli writes, that it's nesessary to implement IPersistStreamInit, IPersistStream,IPersistPropertyBag and some other interfaces, and add COM_ENTRY'es and PROP_ENTRY'es, if needed.