I need to somehow read the data from the buffer, as well as find out the size of each word (that is, before the space) and to conduct each word in a separate index in the Array.
Closed due to the fact that the essence of the issue is incomprehensible by the participants αλεχολυτ , pavel , Vladimir Martyanov , aleksandr barakin , sercxjo 20 Aug '16 at 9:32 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- 2what buffer? - Abyx
- 2Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky ♦
1 answer
In order to read the data from the clipboard, you need to use the WinApi function: https://stackoverflow.com/questions/5098185/how-can-i-assign-clipboard-text-to-a-variable-in-c
Regarding the division of counting each word, you can use the solutions from this question to divide the string by the divisor (in this case, the space) and divide the length into each word: https://stackoverflow.com/questions/236129/split-a-string-in -c