Discussion:
ActiveX control MFC Visual C++ 97 to visual C++ 2003 (and 2005)
(too old to reply)
noro
2008-10-07 08:30:09 UTC
Permalink
I have an old application with custom ActiveX controls (MFC, COleControl);
this controls work fine. I build this old application with VC++5('97).
Now, I have builded the application (and the controls) with VC++2003; no
major changes in source code. But after build, the ActiveX controls does not
work well anymore.

I developed an test control with VC++ 97 (from Wizard, defaults, subclassing
CEdit ) and an test control with VC++ 2003 (from Wizard, defaults,
subclassing CEdit ). So now I have 2 test controls, builded and registered.

With VC++97 I make 2 dialog-based applications and I include the controls
(one for each application). Build. Run the applications:
The focus is on the OK button. TAB to the Cancel button. TAB to the ActiveX
control. TAB to the OK button. TAB to the Cancel button. TAB to the ActiveX
control. TAB to the OK button....

With VC++2003 I make another 2 dialog-based applications and I include the
controls (one for each application). Build. Run the applications:
The focus is on the OK button. TAB to the Cancel button. TAB to the ActiveX
control. TAB to the OK button. TAB to the Cancel button. (!!!) TAB to the OK
button. TAB to the Cancel button. TAB to the OK button. TAB to the Cancel
button...

With 2003 (and 2005) dialog-based test applications, after the first visit,
I can't go back, with TAB, to the ActiveX control; I must click into it! This
behaviour is the same with the both versions of the control (97 and 2003), so
I think the controls are not the problem.

But... what is wrong?
Thank you!
noro
2008-10-08 06:58:14 UTC
Permalink
Get sources from here:

http://www.infoiasi.ro/~pnoro/download/TestOcxControlVS97.zip

http://www.infoiasi.ro/~pnoro/download/TestOcxControlVS2003.zip

Noro

Loading...