Do I have to call ::OpenClipboard(NULL) and ::CloseClipboard() during copy/paste?

Discussion in 'Word Programming' started by JD, Sep 14, 2012.

  1. JD

    JD Guest


    Do I have to call ::OpenClipboard(NULL) and ::CloseClipboard() when I call CComPtr<Word::Selection>'s Copy and Paste? I suppose that MS should do that for us internally? If not, is the following sequence correct? Your help is much appreciated.

    sel->Copy(); // sel is a CComPtr<Word::Selection>



    JD, Sep 14, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.