March 3rd, 2016, 07:03 PM
The information in the links provided looks confusing for me.... I am sorry for saying that.
If I can run Notepad and open the needed file with this simple code:
CString...
February 29th, 2016, 08:25 PM
Hi,
I am writing dialog based MFC application and one of the tasks is to control Notepad...
I have found some code to open Notepad and specific text file..
All works fine, but I have two...
February 27th, 2016, 02:17 PM
I will try,
thanks a lot...
February 26th, 2016, 06:05 PM
I agree that it is good to have some code detecting the situation where it will be no 'Q' in the string.... It can't happen to my program, but I will add some procedure to detect that anywhere......
February 26th, 2016, 05:57 PM
Finally I have used the solution you mention and it worked... the string I am working is a path string, something as: C:\Users\Public\Documents\some_folder\text.txt
so what I need the part ...
February 25th, 2016, 09:28 PM
Hi to all,
Thank to all of you, that was a great help for me
It finally worked in this way:
........
while (one [x]!='Q')
{
two+=1;
two .SetAt(y,one[x]);
x+=1;
y+=1;
February 24th, 2016, 11:06 PM
sorry to all
I found a mistake in code, it should be:
.....
CString one=" some text Q the rest of the text ";
CString two;
int x, y;
x=y=0;
while (one [x]!='Q')
{
February 24th, 2016, 09:09 PM
hi to all,
I use Visual c++ 6.00
I have a code which in my opinion should work:
.....
CString one=" some text Q the rest of the text ";
CString two;
int x, y;
x=y=0;
while (one [x]!='Q')
two...