PRB: Using Cut/Copy Items in HTML Edit Control Fails in VJ++ 6.0

SYMPTOMS

The following error occurs when you try to use Cut or Copy in an HTML edit box control:
'0x80000001 - Not Implemented'

RESOLUTION

To fix the problem, call Application.OLERequired() in your main() method before you call Application.run().

MORE INFORMATION

Steps to Reproduce the Problem

  1. Create a Windows application project.
  2. Drag and drop an HTML Control into the Form. This control can be found in the WFC Controls section of the Visual J++ 6.0 Toolbox.
  3. Add the following line before the statement public Form1():
    DhEdit adhEdit;  // This implements an HTML edit box control.


  4. Double-click the control, and the following stub appears (add the code as provided in the following code sample):
       private void HTMLControl1_documentReady(Object source,                                                                                                                                  DocumentReadyEvent e)   {      adhEdit=new DhEdit();      adhEdit.setMultiline(true);      adhEdit.setWordWrap(false);      adhEdit.setCols(40);      adhEdit.setRows(20);      HTMLControl1.setNewHTMLElements(new DhElement[]{adhEdit});    }


  5. Run the Application and type something in the HTML Control.
  6. Right-click on the item, select copy or cut, and the following error occurs:
    '0x80000001 - Not Implemented'
To fix the problem do the following in your main() method:

   public static void main(String args[])   {      Application.OLERequired();      Application.run(new Form1());   }

REFERENCES

For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following page on the Microsoft
Technical Support site:


Propriétés

ID d'article : 200184 - Dernière mise à jour : 14 févr. 2017 - Révision : 1

Microsoft Visual J++ 6.0 Édition standard

Commentaires