PRB: Error Deleting MFC ActiveX Control in HTML Layout Control

Last reviewed: December 9, 1997
Article ID: Q164943
The information in this article applies to:
  • Microsoft ActiveX Control Pad, version 1.0
  • Microsoft Foundation Classes (MFC) included with: - Microsoft Visual C++, 32-bit Edition, version 4.2

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 : AXSDKControls MfcOLE kbprg kbprb
Technology : kbMfc kbole
Version : 1.0 4.2 4.2b
Platform : WINDOWS
Issue type : kbdocerr


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.