Yes, but I have to read the unwanted data and assign them a place to store them and then discard? There are 23 unwanted entries in each line, and there are 80 lines. This is what I dont want to do.
Jose Luis Sogorb
Posts
-
Skipping data with fscanf? -
Skipping data with fscanf?Hello, I have 80 lines in a text file with 30 values each line separated by a white space (some are ints, doubles and another strings). I have made a routine with fscanf() to read each line and store the values I need. But I only need 7 of the 30 values to store them in an array, so , for instance, I want to store the first data, and the second and third, then skip the next 4 values, store the next and so on. Is there a way to skip entries with fscanf function? Thank you.
-
Scanning & extracting from CStringThank you!
-
Scanning & extracting from CStringAnybody can show me an easy way to extract words from a string. Say I have the CString "03 March 2005" and I want an integer with the day, a string with month and an integer with year. Thanks.
-
DateTimePicker error debuggingIt works fine in debug mode, also. Thanks!!!!
-
DateTimePicker error debuggingThank you, very much. I'll try it.
-
DateTimePicker error debuggingNo, I have it setted as 'short date' style. Can you give me an example code as you have initialized it? Thanks
-
DateTimePicker error debuggingNo, the value in the dialog appears automatically(actual date), so I thought it was not needed to init with a value. How do you do it?
-
DateTimePicker error debuggingSame error.
-
DateTimePicker error debuggingHi: I have this code: Into DoDataExchange DDX_Control(pDX, IDC_DATETIMEPICKER, m_date); Into own function: void CDialogSd::OnOK() { CDialog::OnOK(); CTime time; m_date.GetTime(time); day.Format("%d",time.GetDay()); month.Format("%d",time.GetMonth()); year.Format("%d",time.GetYear()); } It works fine when compiling in Release Mode, but find an exception when running in Debug Mode and it breaks at: _AFX_INLINE int CTime::GetDay() const { return GetLocalTm(NULL)->tm_mday; } Looking for the 'time' value it appears as 1108057231 (%ld value)in Release and -365867584 when debugging. What could be the problem? Thanks
-
Inserting an image into a viewThank you.
-
Inserting an image into a viewHi: which is the easiest way to insert a little image (maybe a BMP 30x30 pixels) in specific coordinates (x, y) into a view? Thanks.
-
Hyperlinks into afxcore.rtfHi: is is possible to add extern hyperlinks into the help file afxcore.rtf?
-
Push Button Properies-Icon prompt?Thank you, I also have found a good article: http://www.codeproject.com/buttonctrl/tooltipressourcebutton.asp
-
Push Button Properies-Icon prompt?Hi: if I have defined a push button as an Icon is there any way to show an info prompt when I put the mouse over this button? Thanks.
-
Capturing and stretching imageThanks, but is it not another easier solution without saving first the image to a file?
-
Capturing and stretching imageHi: I need to capture an image made in my window (with MoveTo and LineTo functions) and stretched it to another size. How can I make it? thanks,
-
MSFlexgrid distribute?Hi, I have included an MSFlexgrid control into my MFC application and I don't know if it is necessary to add the ocx file, as well as another files into the project to distribute the program (and what files?). And is it needed to make a registering routine for this Activex control in Windows register? Thanks
-
Exit with confirmationOk, that works, I've override onclose, and it's ok. And what about killing the process from task manager, is it possible to do the same? Thanks a lot.
-
Exit with confirmationI need to ask for confirmation when finishing an app, how can I process the messages sent by any way of closing an application? ("Exit" in File Menu, the cross at top-right in the window, or even using task manager) Thank you.