How do you get rid of the command prompt screen?
In addition I want to load a certain file with notepad, I'm not sure if I can add extensions when I code the line.
User Profile
Collapse
-
how do you get rid of the command prompt window when you run system("notepad .exe");?Leave a comment:
-
-
-
Txt -> Edit Box Confusion
I'm loading a txt file using CStdioFile::CFi le::modeRead
and for some reason the text file I'm loading, I cannot edit the edit box at all.
However, I am allowed to edit other text files using the edit box I load in. Is it possible the file I cannot is protected somehow? -
Opening Common File Dialogs
Out of curiosity, is it possible to run code to run an application like notepad? -
I'm guessing since you don't want a case switch
that you're looking for if, else?Leave a comment:
-
-
I'm not sure if your example shows multiple whitespace. But, you can try detecting for sequential whitespaces, if true, I forgot which function would work best, strcpy, substr?
for x = 0; x < strlen (of string); x++)
if gkfghjk[x] == ' ';
if fgjfjfghjfj[x+1] == ' ';
here you do somethingLeave a comment:
-
Hey I ended up using a Replace("\r\n", "\n"); and it works now. Thanks though.Leave a comment:
-
Modifying a CString
I've tried a couple of methods and I can't get it to work. I'm trying to change the extension of a file.
CString targetfile = "dhgdgjf.tx t";
LPTSTR p = targetfile.GetB uffer();
targetfile.Find (".txt");
lstrcpy( p, _T(".doc") );
targetfile.Rele aseBuffer(); -
Sorry but I'm not quite sure where you're getting at. What is your method that you're thinking of exactly?Leave a comment:
-
Well that's a problem, I am reading a file that can variate from small to large so having it read a fixed amount may not work for me.Leave a comment:
-
Right now I'm using CStdioFile
and
while(myFile.Re adString(ReadFi le) == TRUE)
it will read line by line until it reaches the end of the fileLeave a comment:
-
-
It will display boxes if I dont add \r\n but then it will save extra newlines.Leave a comment:
-
example:
(from text file to window box)
revdagffs
gfsgsfgsfg
made some changes:
revdagffs
gfsgsfgsfgsfgfs g
sgfsgfgsf
(save from window box to string, reload window box)
revdagffs
gfsgsfgsfgsfgfs g
sgfsgfgsf
....
again
revdagffs
gfsgsfgsfgsfgfs g...Leave a comment:
-
-
CEdit new lines show up as boxes
I'm reading text from a file and storing it in a string. When I use ShowWindowText, new lines show up as boxes. I used the \r\n trick but I want to save any changes (like notepad) and it'll store at the end of every line.
What would I need to do?
No activity results to display
Show More
Leave a comment: