Hi, I have an output file (text file). In the text file there are a few locations of other text files, along with the name and path of each file. it seems like if the location is anywhere other than the desktop the file can not be found. How can I read the location of a file from another text file and open it? Thank Ehsan Behboudi
mr2003
Posts
-
reading a file location from an another output file -
Count the number of characters in a CStringwe all have good days and bad days, my friend !!! Ehsan Behboudi
-
CString questionHi, I would like to delete all the characters after ".pvd" in a CString variable. How can I keep all the characters before and including ".pvd" and delete all the characters after it??????? Ehsan Behboudi
-
Count the number of characters in a CStringHi, What is the syntax to count the number of characters in a CString ? Ehsan Behboudi
-
How to copy a fileHi, I would like to know how to make a copy of the file that i just opened. what is the sytax for it???? Ehsan Behboudi
-
how to open a closed output file(.CSV )hi, I would like to know how to open a closed output file !!!! thanks Ehsan Behboudi
-
how to write to a closed output file(.CSV)what is the code to reopen the file? Ehsan Behboudi
-
how to write to a closed output file(.CSV)Hi, I would like to know if its possible to write to an already closed output file. I am actually using a .CSV file. Thanks Ehsan Behboudi
-
How to convert CString to intHi, I would like to know how to convert CString to int??? Thanks Ehsan Behboudi
-
Reading a .csv filehow do I use those commands in my code right now this is how I read my .csv file ifstream infile(file1); char temp[500]; infile>>temp; // so now i want to move to the next row or column, how do I do that with your syntax? Thanks Ehsan Behboudi
-
Reading a .csv fileHi, How can I read raws and columns of a .csv file? I would like to move from one column to the next,, how can I do that ? Ehsan Behboudi
-
How to change from WORD to CStringHi, In my code, i read the system date with the following code, SYSTEMTIME systime; GetLocalTime ( &systime ); WORD day = systime.wDay; WORD month = systime.wMonth; WORD year = systime.wYear; now, I would like to store it in this format, day/month/year as CString,. how can I do that? Ehsan Behboudi
-
how to get the dateHi, I would like see if I can get the system date in a few lines of code? any ideas? Thanks Ehsan Behboudi
-
how to add dynamically to Combo BoxHi, I have MDI project. In one of the dialog boxes, I have a Combo Box, and according to a file (this file is read before the dialog is opened), I have to add items to the combo box, and the number of items is different according to the read file. how can I add dynamically to the Combo Box? Ehsan Behboudi
-
Dynamic Buttons in Dialog BoxHi, In my application, MDI, I have to read an output file in one of the dialog boxes. According to the output file, lets say 6 is read in the file. I then have to make 6 Buttons in that Dialog box. the number 6 could change, so I would like to know how to make it dynamic. Any ideas? Ehsan Behboudi
-
How to add Buttons dynamicallyHi, In my application, MDI, I have to read an output file in one of the dialog boxes. According to the output file, lets say 6 is read in the file. I then have to make 6 Buttons in that Dialog box. the number 6 could change, so I would like to know how to make it dynamic. Any ideas? Ehsan Behboudi
-
How to run a VB program in VC++yes, the VB objects are all COM objects. I have a whole bunch of functions in VB,, which I would like to use in VC++. They are all COM objects. How can I use the functions, or include the .bas in my VC++ so I could just call the functions in VC++. Ehsan Behboudi
-
How to run a VB program in VC++Hi, I have a VB program and I would like to run it in VC++, is that possible? Ehsan Behboudi
-
output file in VC++Hi, I am trying to get a few parameters in an output file. i have included fsteam.h, and iostream.h my code is: ofstream out("output.txt"); CMyDoc* pDoc = GetDocument(); out<<"12454 "; out<X_Position<<"\n"; out<<"y: "; out<Y_Position<<"\n"; out<<"z: "; out<Z_Position<<"\n"; the code makes the output file, but its always empty,, any siggestions? Ehsan Behboudi
-
How to resize the MDI child window at startupHi, I would like to be able to resize the MDI before start up, I mean, i want to make it really small, How can I resize it in my code? Ehsan Behboudi