PRB: Error Deleting MFC ActiveX Control in HTML Layout Control

ID: Q164943


The information in this article applies to:


SYMPTOMS

If you insert an ActiveX control built with MFC 4.2 into an HTML Layout control when using ActiveX Control Pad and then try to delete it, you get the following error message:

Could not delete the controls, unspecified error
The control won't be deleted from the .alx file.


RESOLUTION

Install the Visual C++ Technology patch (version 4.2b) and rebuild the ActiveX control. The patch can be downloaded from

http://www.microsoft.com/visualc.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Load MSDEV.


  2. On the File menu, click New, click Project Workspace, and then click New Project.


  3. Enter a name for the control (Control1).


  4. Click Create.


  5. Click Finish.


  6. Click OK.


  7. Build the Project.


  8. Load ActiveX Control Pad.


  9. On the File menu, click New HTML Layout.


  10. Right-click the floating Toolbox window that appears.


  11. Select Additional Controls from the pop-up menu.


  12. Check Control1 Control (or whatever you named your project in step 3).


  13. Click OK.


  14. Drag the "OCX" control onto the layout window.


  15. Select the control (the control should be highlighted).


  16. Press the DELETE key.


  17. A dialog box that contains the following message appears:
    Could not delete the controls. Unspecified error.



REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

http://support.microsoft.com/support/vinterdev/

Additional query words: active x


Keywords          : kbole kbdocerr kbActiveX kbMFC kbVC kbVisID100 kbGrpASP AXSDKControls 
Version           : WINDOWS:1.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 10, 1999