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