Microsoft KB Archive/164943

{|
 * width="100%"|

PRB: Error Deleting MFC ActiveX Control in HTML Layout Control

 * }

ID: Q164943

-

The information in this article applies to:


 * Microsoft ActiveX Control Pad, version 1.0
 * Microsoft Foundation Classes (MFC), used with:
 * Microsoft Visual C++, 32-bit Editions, 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."

Steps to Reproduce Behavior
 Load MSDEV. On the File menu, click New, click Project Workspace, and then click New Project. Enter a name for the control (Control1). Click Create. Click Finish. Click OK. Build the Project. Load ActiveX Control Pad.</li> On the File menu, click New HTML Layout.</li> Right-click the floating Toolbox window that appears.</li> Select Additional Controls from the pop-up menu.</li> Check Control1 Control (or whatever you named your project in step 3).</li> Click OK.</li> Drag the "OCX" control onto the layout window.</li> Select the control (the control should be highlighted).</li> Press the DELETE key.</li>  A dialog box that contains the following message appears:

Could not delete the controls. Unspecified error.

</li></ol>