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. MFC dialog based application

MFC dialog based application

Scheduled Pinned Locked Moved C / C++ / MFC
c++helplearning
3 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.
  • U Offline
    U Offline
    User 11789340
    wrote on last edited by
    #1

    Completely new to C++ and have been given a task that includes creating an application that uses CString data from a completely separate .h file. The CStrings consist of info that I need to be able to copy to the clipboard, then be able to paste that text into word etc. I have set up a button in the application so when that button is pressed it executes what I want it to do (read the CString data and copy it to the clipboard). For a person of my skill level this is difficult and my colleagues do not have the time to support me on this learning project so I thought I could get some advice and pointers here. Any help would be greatly appreciated. I am an apprentice working in software for 2 months. Kind regards, Luke

    D L 2 Replies Last reply
    0
    • U User 11789340

      Completely new to C++ and have been given a task that includes creating an application that uses CString data from a completely separate .h file. The CStrings consist of info that I need to be able to copy to the clipboard, then be able to paste that text into word etc. I have set up a button in the application so when that button is pressed it executes what I want it to do (read the CString data and copy it to the clipboard). For a person of my skill level this is difficult and my colleagues do not have the time to support me on this learning project so I thought I could get some advice and pointers here. Any help would be greatly appreciated. I am an apprentice working in software for 2 months. Kind regards, Luke

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

      Member 11822807 wrote:

      I have set up a button in the application so when that button is pressed it executes what I want it to do (read the CString data and copy it to the clipboard).

      This is what it does or this is what you want it to do?

      Member 11822807 wrote:

      ...so I thought I could get some advice and pointers here. Any help would be greatly appreciated.

      So what EXACTLY do you have a question about?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      1 Reply Last reply
      0
      • U User 11789340

        Completely new to C++ and have been given a task that includes creating an application that uses CString data from a completely separate .h file. The CStrings consist of info that I need to be able to copy to the clipboard, then be able to paste that text into word etc. I have set up a button in the application so when that button is pressed it executes what I want it to do (read the CString data and copy it to the clipboard). For a person of my skill level this is difficult and my colleagues do not have the time to support me on this learning project so I thought I could get some advice and pointers here. Any help would be greatly appreciated. I am an apprentice working in software for 2 months. Kind regards, Luke

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You have not actually told us what help you want, so I am guessing you want to know how to:

        • read from a text file: https://msdn.microsoft.com/en-us/library/a499td6y.aspx[^].
        • use the clipboard: https://msdn.microsoft.com/en-us/library/80db3kax.aspx[^].
        • paste data to Word. This requires knowledge of COM and the Word interfae. A far more advanced topic.
        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