Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. clipboard

clipboard

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutoriallearning
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stirfie
    wrote on last edited by
    #1

    Is it possible to create a console application to send an image to the clipboard using:- c:\image.jpg (for example) as part of the command line parameter. I have just started learning C++ and am trying to create some simple console apps to get started. Regards Paul

    T 1 Reply Last reply
    0
    • S Stirfie

      Is it possible to create a console application to send an image to the clipboard using:- c:\image.jpg (for example) as part of the command line parameter. I have just started learning C++ and am trying to create some simple console apps to get started. Regards Paul

      T Offline
      T Offline
      Tareq Ahmed Siraj
      wrote on last edited by
      #2

      Yes... read the image file (look for hints and code in the forum and articles) and then use ::SetClipboardData() (look it up in MSDN ... there is also an example there.). Hope this helps. - tareq

      S 1 Reply Last reply
      0
      • T Tareq Ahmed Siraj

        Yes... read the image file (look for hints and code in the forum and articles) and then use ::SetClipboardData() (look it up in MSDN ... there is also an example there.). Hope this helps. - tareq

        S Offline
        S Offline
        Stirfie
        wrote on last edited by
        #3

        Thanks for the reply Can anyone tell me which header file I have to include to use the clipboard functions. Is it hust windows.h ?

        D T 2 Replies Last reply
        0
        • S Stirfie

          Thanks for the reply Can anyone tell me which header file I have to include to use the clipboard functions. Is it hust windows.h ?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Stirfie wrote: Can anyone tell me which header file I have to include to use the clipboard functions. They are in winuser.h which you get by including windows.h.


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          1 Reply Last reply
          0
          • S Stirfie

            Thanks for the reply Can anyone tell me which header file I have to include to use the clipboard functions. Is it hust windows.h ?

            T Offline
            T Offline
            Tareq Ahmed Siraj
            wrote on last edited by
            #5

            The easiest way to find out what header/lib to use, look up the function in MSDN and at the bottom you'll find function information. Hope this helps. - tareq

            S 1 Reply Last reply
            0
            • T Tareq Ahmed Siraj

              The easiest way to find out what header/lib to use, look up the function in MSDN and at the bottom you'll find function information. Hope this helps. - tareq

              S Offline
              S Offline
              Stirfie
              wrote on last edited by
              #6

              Thanks guys

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups