Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [Noob question] Reading a file gives me weird Y chars? Pin
Lord Kixdemp13-Jul-06 11:51
Lord Kixdemp13-Jul-06 11:51 
Questiontimer for 1sec and more Pin
thathvamsi10-Jul-06 15:32
thathvamsi10-Jul-06 15:32 
AnswerRe: timer for 1sec and more Pin
Jun Du10-Jul-06 16:09
Jun Du10-Jul-06 16:09 
GeneralRe: timer for 1sec and more Pin
thathvamsi10-Jul-06 16:57
thathvamsi10-Jul-06 16:57 
GeneralRe: timer for 1sec and more Pin
ThatsAlok10-Jul-06 19:12
ThatsAlok10-Jul-06 19:12 
GeneralRe: timer for 1sec and more Pin
thathvamsi10-Jul-06 20:20
thathvamsi10-Jul-06 20:20 
GeneralRe: timer for 1sec and more Pin
ThatsAlok10-Jul-06 22:48
ThatsAlok10-Jul-06 22:48 
GeneralRe: timer for 1sec and more Pin
Jun Du11-Jul-06 3:31
Jun Du11-Jul-06 3:31 
I'm not going to check the details of your code. Rather, I'll treat it as pseudo code.

First, be careful with OnTimer() and On_rx() logic, which could be conflicting. If you use timer, you should check whether your received the feedback inside OnTimer(), not On_rx(). If you must use On_rx(), you can check how much time elapsed since last On_send() call without using timer. OnTimer() and On_rx() complicate things unnecessarily.

Second, the blocks {} you used in the segment are incorrect:
thathvamsi wrote:
On_rx(wparam,lparam)
{
//checks for packet received
//if no packet received from serial device, then
{
//check for timer
//while(timer has elapsed)
OnTimer()
{
//resend the packet to MPU
post_message(WM_RESEND,null)
}

}
}




Best,
Jun
Questionabout window message Pin
HOW WHAT10-Jul-06 15:20
HOW WHAT10-Jul-06 15:20 
AnswerRe: about window message Pin
Andy Moore10-Jul-06 16:36
Andy Moore10-Jul-06 16:36 
AnswerRe: about window message Pin
Steve Echols10-Jul-06 18:11
Steve Echols10-Jul-06 18:11 
Questioncan somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
boilerroom10-Jul-06 15:07
boilerroom10-Jul-06 15:07 
AnswerRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
ThatsAlok10-Jul-06 19:15
ThatsAlok10-Jul-06 19:15 
GeneralRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
Taka Muraoka10-Jul-06 20:30
Taka Muraoka10-Jul-06 20:30 
JokeRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
ThatsAlok10-Jul-06 22:49
ThatsAlok10-Jul-06 22:49 
GeneralRe: can somebody show me a sourcecode about a game called "PACMAN"writing in MFC??HELP Pin
boilerroom11-Jul-06 15:13
boilerroom11-Jul-06 15:13 
QuestionReaders and Writers Problem Pin
Fidel_1810-Jul-06 13:53
Fidel_1810-Jul-06 13:53 
AnswerRe: Readers and Writers Problem Pin
ThatsAlok10-Jul-06 19:16
ThatsAlok10-Jul-06 19:16 
GeneralRe: Readers and Writers Problem Pin
Fidel_1810-Jul-06 20:26
Fidel_1810-Jul-06 20:26 
QuestionMSWord Compound files Pin
Fwzklmn10-Jul-06 11:45
Fwzklmn10-Jul-06 11:45 
QuestionResolved:Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name [modified] Pin
method00710-Jul-06 9:34
method00710-Jul-06 9:34 
AnswerRe: Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name Pin
Jun Du10-Jul-06 9:46
Jun Du10-Jul-06 9:46 
AnswerRe: Help solving: error C2653: 'FindUserDlg' : is not a class or namespace name Pin
RChin10-Jul-06 10:29
RChin10-Jul-06 10:29 
QuestionCreating performance counters Pin
Mike Dimmick10-Jul-06 6:49
Mike Dimmick10-Jul-06 6:49 
AnswerRe: Creating performance counters Pin
Jonathan [Darka]10-Jul-06 8:26
professionalJonathan [Darka]10-Jul-06 8:26 

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.