Thread: Copy and Paste function in console apps.

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    8

    Copy and Paste function in console apps.

    Whenever I want to copy and paste some data into an application (say a paragraph of text into a word counting application), I have to open it up in command prompt.
    When I run the app by double clicking it, I get no 'right click --> paste' functions to use.

    When I use command prompt I loose the debugging functions in VC++. How can I implement a copy and paste thing into my application?

    Thankyou

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Have you tried right-clicking on the title-bar?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    8
    Haha, yes that works thanks

    How could I have it so that i can right click anywhere in the window though?

  4. #4
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Right click on Console Application on your title bar, and you should see an option Edit-Mark, click on that. And now use your mouse to highlight the content which you want to copy on your console screen and hit the enter key. The content which you highlighted is now been copyed.

    ssharish

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Open a console
    Click the top-left icon in the title bar, and choose properties
    On the options tab, select "QuickEdit mode".

    Then you can do
    - hold left mouse button down, then drag to select text
    - right mouse (or press enter) to copy
    - right mouse again to paste
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    8
    Thats great Salem.

    Thankyou all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copy and paste text
    By glue21 in forum C++ Programming
    Replies: 11
    Last Post: 10-07-2005, 08:24 AM
  2. help with a source code..
    By venom424 in forum C++ Programming
    Replies: 8
    Last Post: 05-21-2004, 12:42 PM
  3. copy paste from another app
    By bonkey in forum Windows Programming
    Replies: 1
    Last Post: 09-08-2003, 08:03 AM
  4. error LNK2001: unresolved external symbol
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 07-12-2002, 08:45 PM