Changing Clipboard to Notepad error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • defience
    New Member
    • Jan 2007
    • 27

    #1

    Changing Clipboard to Notepad error

    I took some C++ code and tried to change Clipboard to Notepad. When I do, I get "Notepad is not defined". I can't find any other references to Clipboard anywhere else in the code. Any ideas?
    Code:
    Code:
    if (OpenClipboard(NULL))
    {
    EmptyClipboard();
    SetClipboardData(CF_TEXT, hMem);
    CloseClipboard();
  • defience
    New Member
    • Jan 2007
    • 27

    #2
    ~^v^~^v^~^v^~

    Comment

    • Ganon11
      Recognized Expert Specialist
      • Oct 2006
      • 3651

      #3
      I'm not even sure what Clipboard is, but my only guess is that instead of searching for "Notepad", try "Notepad.ex e".

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Have you looked at this article on MSDN yet?

        http://msdn.microsoft. com/library/default.asp?url =/library/en-us/winui/winui/windowsuserinte rface/dataexchange/clipboard/usingtheclipboa rd.asp

        Comment

        Working...