Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Increase the window message priority Pin
Frank K5-Sep-06 2:42
Frank K5-Sep-06 2:42 
GeneralRe: Increase the window message priority Pin
helpcode6-Sep-06 18:40
helpcode6-Sep-06 18:40 
AnswerRe: Increase the window message priority Pin
ThatsAlok5-Sep-06 2:47
ThatsAlok5-Sep-06 2:47 
AnswerRe: Increase the window message priority Pin
Michael Dunn5-Sep-06 12:31
sitebuilderMichael Dunn5-Sep-06 12:31 
QuestionSerial communication + thread related problem Pin
harsha_12345-Sep-06 2:13
harsha_12345-Sep-06 2:13 
AnswerRe: Serial communication + thread related problem Pin
ThatsAlok5-Sep-06 2:50
ThatsAlok5-Sep-06 2:50 
AnswerRe: Serial communication + thread related problem Pin
Blake Miller6-Sep-06 11:49
Blake Miller6-Sep-06 11:49 
QuestionReading error Pin
Anu_Bala5-Sep-06 2:08
Anu_Bala5-Sep-06 2:08 
Hi, I am reading some float value from a file.
Code:
char tScaleLow[8],tScaleHigh[8],tAlarmLow[8],tAlarmHigh[8];
cfTag.Read(tScaleLow,sizeof(float));
cfTag.Read(tScaleHigh,sizeof(float));
cfTag.Read(tAlarmLow,sizeof(float));
cfTag.Read(tAlarmHigh,sizeof(float));

This is my code it reads the value fine.But the drawback is it reads only 4 characters i.e, if ScaleHigh is 100000 it reads only 1000.
So, i changed the code as follow...
float fScaleLow,fScaleHigh,fAlarmLow,fAlarmHigh;
cfTag.Read(&fScaleLow,sizeof(float));
cfTag.Read(&fScaleHigh,sizeof(float));
cfTag.Read(&fAlarmLow,sizeof(float));
cfTag.Read(&fAlarmHigh,sizeof(float));
This reads some garbage value like 6.002e+102 like this,all the four things reads like this.
Whats the wrong in my code?Or is there any way to read all values in that previous code.

Anu

AnswerRe: Reading error Pin
_AnsHUMAN_ 5-Sep-06 2:12
_AnsHUMAN_ 5-Sep-06 2:12 
GeneralRe: Reading error Pin
Anu_Bala5-Sep-06 2:24
Anu_Bala5-Sep-06 2:24 
GeneralRe: Reading error Pin
_AnsHUMAN_ 5-Sep-06 2:29
_AnsHUMAN_ 5-Sep-06 2:29 
GeneralRe: Reading error Pin
Anu_Bala5-Sep-06 2:38
Anu_Bala5-Sep-06 2:38 
AnswerRe: Reading error Pin
Sebastian Schneider5-Sep-06 3:18
Sebastian Schneider5-Sep-06 3:18 
QuestionDebugging NULL call CTDs Pin
mnelles5-Sep-06 1:55
mnelles5-Sep-06 1:55 
AnswerRe: Debugging NULL call CTDs Pin
Frank K5-Sep-06 2:49
Frank K5-Sep-06 2:49 
GeneralRe: Debugging NULL call CTDs Pin
mnelles5-Sep-06 4:07
mnelles5-Sep-06 4:07 
QuestionCRichEditCtrl link color predefined Pin
YaronNir5-Sep-06 1:44
YaronNir5-Sep-06 1:44 
QuestionPlaySound question Pin
YaronNir5-Sep-06 1:43
YaronNir5-Sep-06 1:43 
AnswerRe: PlaySound question Pin
Hamid_RT5-Sep-06 2:21
Hamid_RT5-Sep-06 2:21 
GeneralRe: PlaySound question Pin
YaronNir5-Sep-06 3:04
YaronNir5-Sep-06 3:04 
QuestionRe: PlaySound question Pin
David Crow5-Sep-06 4:20
David Crow5-Sep-06 4:20 
AnswerRe: PlaySound question Pin
Hamid_RT5-Sep-06 5:33
Hamid_RT5-Sep-06 5:33 
GeneralRe: PlaySound question Pin
David Crow5-Sep-06 7:01
David Crow5-Sep-06 7:01 
GeneralRe: PlaySound question Pin
Hamid_RT5-Sep-06 8:11
Hamid_RT5-Sep-06 8:11 
Questionerror LNK2001: unresolved external symbol _strnicmp Pin
jalsa G5-Sep-06 1:19
jalsa G5-Sep-06 1:19 

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.