Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Size of Date/TimePicker Pin
David Crow27-Apr-10 3:34
David Crow27-Apr-10 3:34 
AnswerRe: Size of Date/TimePicker Pin
Xerantes27-Apr-10 19:32
Xerantes27-Apr-10 19:32 
GeneralRe: Size of Date/TimePicker Pin
David Crow28-Apr-10 2:16
David Crow28-Apr-10 2:16 
GeneralRe: Size of Date/TimePicker Pin
Xerantes28-Apr-10 2:29
Xerantes28-Apr-10 2:29 
QuestionMFC + CDatabase + .UDL file Pin
Undici7726-Apr-10 23:35
Undici7726-Apr-10 23:35 
AnswerRe: MFC + CDatabase + .UDL file Pin
Richard MacCutchan27-Apr-10 5:18
mveRichard MacCutchan27-Apr-10 5:18 
AnswerRe: MFC + CDatabase + .UDL file Pin
Chris Meech27-Apr-10 5:32
Chris Meech27-Apr-10 5:32 
GeneralRe: MFC + CDatabase + .UDL file Pin
Undici7727-Apr-10 5:58
Undici7727-Apr-10 5:58 
GeneralRe: MFC + CDatabase + .UDL file Pin
Richard MacCutchan27-Apr-10 6:36
mveRichard MacCutchan27-Apr-10 6:36 
GeneralRe: MFC + CDatabase + .UDL file Pin
Undici7727-Apr-10 6:38
Undici7727-Apr-10 6:38 
GeneralRe: MFC + CDatabase + .UDL file Pin
Richard MacCutchan27-Apr-10 7:01
mveRichard MacCutchan27-Apr-10 7:01 
GeneralRe: MFC + CDatabase + .UDL file Pin
Undici7727-Apr-10 23:47
Undici7727-Apr-10 23:47 
GeneralRe: MFC + CDatabase + .UDL file Pin
Richard MacCutchan28-Apr-10 3:07
mveRichard MacCutchan28-Apr-10 3:07 
GeneralRe: MFC + CDatabase + .UDL file Pin
Undici7728-Apr-10 3:18
Undici7728-Apr-10 3:18 
GeneralRe: MFC + CDatabase + .UDL file Pin
Richard MacCutchan28-Apr-10 3:25
mveRichard MacCutchan28-Apr-10 3:25 
GeneralRe: MFC + CDatabase + .UDL file Pin
Undici7729-Apr-10 2:35
Undici7729-Apr-10 2:35 
Questionauto delete the files at specefic date and time. Pin
MahaKh26-Apr-10 20:11
MahaKh26-Apr-10 20:11 
AnswerRe: auto delete the files at specefic date and time. Pin
«_Superman_»26-Apr-10 20:25
professional«_Superman_»26-Apr-10 20:25 
GeneralRe: auto delete the files at specefic date and time. Pin
MahaKh26-Apr-10 21:36
MahaKh26-Apr-10 21:36 
GeneralRe: auto delete the files at specefic date and time. Pin
«_Superman_»27-Apr-10 6:26
professional«_Superman_»27-Apr-10 6:26 
AnswerRe: auto delete the files at specefic date and time. Pin
chandu00426-Apr-10 22:20
chandu00426-Apr-10 22:20 
AnswerRe: auto delete the files at specefic date and time. Pin
Maximilien27-Apr-10 0:45
Maximilien27-Apr-10 0:45 
AnswerRe: auto delete the files at specefic date and time. Pin
David Crow27-Apr-10 2:50
David Crow27-Apr-10 2:50 
Questionto find starting point of a waveform Pin
mrby12326-Apr-10 19:52
mrby12326-Apr-10 19:52 
AnswerRe: to find starting point of a waveform Pin
Emilio Garavaglia26-Apr-10 22:29
Emilio Garavaglia26-Apr-10 22:29 
If you mean a file made up by lines (separated by a '\n') each containing two numbers separated by a delimiter, with some spurious character at beginning, you typically need to read the file line by line, then parse each line to identify the presence of certain structural elements (digits, signs, separators etc.)
Once you decide that the line looks OK, you can start to convert the (sub)strings into numbers.

Another technique can make use of a circular buffer.
You read the file to fill in the buffer, check the buffer contents if matching some "prerequisite" (as above), do the required conversion then discard the already read characters, and refill the buffer.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.