Add ActiveX in a modeless windows
-
I want to add a Capture Video ActiveX in my program. When I add the ActiveX in my mainframe (CMyAppDlg) and that I use the associated functions with this activeX, I don`t have any problem. But I want to add this ActiveX in a modeless windows created by a item menu. The problem is when I include this ActiveX in my modeless windows and that I call the associated functions to the ActiveX, I have a Assertion Error: "Debug Assertion Failed!" in the file "Winocc.cpp" for each call of a function of this ActiveX. So, I don't know why the ActiveX work in my mainframe but doesn't work in the modeless Windows since I use the same code in the two manner? Thanks for your help! :) Francis B.
-
I want to add a Capture Video ActiveX in my program. When I add the ActiveX in my mainframe (CMyAppDlg) and that I use the associated functions with this activeX, I don`t have any problem. But I want to add this ActiveX in a modeless windows created by a item menu. The problem is when I include this ActiveX in my modeless windows and that I call the associated functions to the ActiveX, I have a Assertion Error: "Debug Assertion Failed!" in the file "Winocc.cpp" for each call of a function of this ActiveX. So, I don't know why the ActiveX work in my mainframe but doesn't work in the modeless Windows since I use the same code in the two manner? Thanks for your help! :) Francis B.
I'm having the same problem with a different ActiveX control I'm using in a modeless dialog from within a DLL. For some reason it seems as though the ActiveX control is not being created properly during the call to Create(). Mine always has a NULL hWnd after the call to create so whenever a method on the control object gets called it bombs out with that same assertion error you're getting because the control has actually not been created properly. I wish I had a solution for you, this one is driving me crazy!