As requested...
Printable View
As requested...
HI Mike, Thanks for the file. While comparing your files with mine, I noticed that enable simple frame wasn't a default in my wizard. I tried creating another control with that ticked, and i still get the winocc.cpp 307 error...
What version of Visual Studio are you using? I created my test program using Visual Studio 2005.
vs2005 and vc++2005. I tried in my vmware which has vs2008 beta.... i get the same error message when i attach the activex.
I have a feeling it's my computer libraries which is causing this problem. I wish i know what?
When i try to debug the error in vs, it goes to afxwin2.inl line 104 (movewindow() function). And the values of lpRect->left 0, top->0, right -50, bottom-50, so nothing wrong with the values ibeleive. and cwnd::movewindow from winocc.cpp line 307
I believe that's where the problem starts or rather ends.Code:assert(::ISWindow(m_hwnd) // I can see it says expression can't be evaluated.
THanks
Hello,
After few days researching i've found out the solution.
The ActiveXCtrl must be a Control Container, this setting resolve the problem:
Put AfxEnableControlContainer() right before the creation of the attached control in the handler of WM_CREATE (::OnCreate).
Cheers!
It must not, in case your dialog styles include WS_CHILD. See the sample as a proof.
Well, if you're saying.
I'm shallow at mfc development, just posting what works out for my problem.
But anyway thanks for the correction! i'll try not to misguide people (unwittingly) again, haha.
Thanks for the post link, this will surely help me with other issues.
Cheers!