Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Manipulate text file Pin
V.17-Jun-04 2:02
professionalV.17-Jun-04 2:02 
GeneralRe: Manipulate text file Pin
chauteen25-Aug-04 22:44
chauteen25-Aug-04 22:44 
GeneralRe: Manipulate text file Pin
V.25-Aug-04 23:23
professionalV.25-Aug-04 23:23 
Generalstill wnat to ask_Re: Manipulate text file Pin
chauteen26-Aug-04 18:15
chauteen26-Aug-04 18:15 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.26-Aug-04 20:47
professionalV.26-Aug-04 20:47 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
Anonymous2-Sep-04 0:47
Anonymous2-Sep-04 0:47 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 1:21
professionalV.2-Sep-04 1:21 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
chauteen2-Sep-04 16:22
chauteen2-Sep-04 16:22 
hi V.
I'm sorry keeping on bothering you.

I agree with you, it is ok to load the whole data to memory.
But I need to write data back and close the file at every editchange, because the file will be accessed by another class.
Fortunately, I have only 8 data need to handle, the speed is compltely fine with me.

My tesk is like this:
I use MFC to make a dialog.
I have serveral tabs with about 8 spins on each of them. and I add these tabs on a base dailog.
I send the spin value out on a master query(I'm slave on the bus. I cann't send data out on my own. I need to wait the query command.)
So I decide to store the tabs spin values in several files(every tab has it's own file), and open a serial port on the base port.
When the user change the spin value, he only change the file, but doesn't send it out.
When the master polling, I send the file data to master.(the polling speed is faster than the user's finger to click spin, of course)
Will my idea work?

One more ask
V. wrote:
"#value1|value2|...|valuen#"
if I make my file like this:
10
15
20
when I fread them, CString will treat 10 to be one byte, or treat 1 as one byte and 0 as teh second byte?
Many thanks for your help beforehan.

slow-witted chauteen
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 20:59
professionalV.2-Sep-04 20:59 
QuestionAre there good WMI samples, articles, books ? Pin
vgrigor117-Jun-04 0:37
vgrigor117-Jun-04 0:37 
AnswerRe: Are there good WMI samples, articles, books ? Pin
Antony M Kancidrowski17-Jun-04 1:52
Antony M Kancidrowski17-Jun-04 1:52 
Generalbatch file for setting env variables Pin
John Oliver17-Jun-04 0:05
John Oliver17-Jun-04 0:05 
GeneralRe: batch file for setting env variables Pin
David Crow17-Jun-04 3:15
David Crow17-Jun-04 3:15 
GeneralRe: batch file for setting env variables Pin
John Oliver17-Jun-04 3:39
John Oliver17-Jun-04 3:39 
QuestionAny idea on this simple application? Pin
Nelson L.16-Jun-04 22:25
Nelson L.16-Jun-04 22:25 
AnswerRe: Any idea on this simple application? Pin
John Oliver17-Jun-04 0:08
John Oliver17-Jun-04 0:08 
GeneralON_COMMAND_RANGE problem Pin
ThatsAlok16-Jun-04 22:20
ThatsAlok16-Jun-04 22:20 
GeneralRe: ON_COMMAND_RANGE problem Pin
Cedric Moonen16-Jun-04 23:24
Cedric Moonen16-Jun-04 23:24 
Generaloperator- in Date Class Pin
foxele16-Jun-04 21:35
foxele16-Jun-04 21:35 
GeneralRe: operator- in Date Class Pin
V.16-Jun-04 22:00
professionalV.16-Jun-04 22:00 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 2:12
John Oliver17-Jun-04 2:12 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 0:20
John Oliver17-Jun-04 0:20 
GeneralActiveX Registration Pin
marcomars16-Jun-04 21:31
marcomars16-Jun-04 21:31 
QuestionDoes ALU inside the cpu handle floating point? or cpu will let the FPU handle it? Pin
Link260016-Jun-04 21:16
Link260016-Jun-04 21:16 
AnswerRe: Does ALU inside the cpu handle floating point? or cpu will let the FPU handle it? Pin
Link260017-Jun-04 14:44
Link260017-Jun-04 14:44 

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.