ActiveX + DLL
-
Hallo. I've created an activeX control, now I need to put this control on a dialog. It seem's easy, but I need to creat a dll library where are two functions Start(CRect rect,CWnd pParentWnd) and CloseShow(). A dialog has a button and when you click it it calls Start(CRect,CWnd). I've spent a lot of on that. Help me if you can.
-
Hallo. I've created an activeX control, now I need to put this control on a dialog. It seem's easy, but I need to creat a dll library where are two functions Start(CRect rect,CWnd pParentWnd) and CloseShow(). A dialog has a button and when you click it it calls Start(CRect,CWnd). I've spent a lot of on that. Help me if you can.
How you host an ActiveX control would depend on when libraries you're using - ATL, MFC, etc. Steve
-
How you host an ActiveX control would depend on when libraries you're using - ATL, MFC, etc. Steve
Using MFC.
-
Using MFC.
In MSVC6: 1. "Project->Add To Project->Components and Controls..." 2. Open "Registered ActiveX Controls" folder. 3. Pick control. 4. Click "Insert". 5. Press "OK". 6. Press "Close". An icon for the new control will appear on the dialog editors controls toolbar. Proceed as you would for other dialog controls. Steve
-
In MSVC6: 1. "Project->Add To Project->Components and Controls..." 2. Open "Registered ActiveX Controls" folder. 3. Pick control. 4. Click "Insert". 5. Press "OK". 6. Press "Close". An icon for the new control will appear on the dialog editors controls toolbar. Proceed as you would for other dialog controls. Steve
Thanks, but the problame is not in that. I've connected the ActiveX, showed it on my parent CWnd, but when I create it CWnd * m_chiled;// is in header m_chiled = new MyContral(); I have memory leak, I need to alloc memory for veriables of DLL.