Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to generate uid for header files PinPopular
CPallini3-Nov-10 2:50
mveCPallini3-Nov-10 2:50 
AnswerRe: how to generate uid for header files Pin
«_Superman_»3-Nov-10 6:17
professional«_Superman_»3-Nov-10 6:17 
GeneralRe: how to generate uid for header files Pin
lakshman rao8-Nov-10 2:56
lakshman rao8-Nov-10 2:56 
AnswerRe: how to generate uid for header files Pin
yu-jian4-Nov-10 15:20
yu-jian4-Nov-10 15:20 
QuestionNumber of instances running Pin
ganesh.dp2-Nov-10 23:53
ganesh.dp2-Nov-10 23:53 
AnswerRe: Number of instances running Pin
GAJERA3-Nov-10 0:42
GAJERA3-Nov-10 0:42 
AnswerRe: Number of instances running Pin
ShilpiP3-Nov-10 1:58
ShilpiP3-Nov-10 1:58 
AnswerRe: Number of instances running Pin
Sauro Viti3-Nov-10 3:55
professionalSauro Viti3-Nov-10 3:55 
QuestionUSB mass storage vs USB HID Pin
Subrat Patnaik2-Nov-10 23:31
Subrat Patnaik2-Nov-10 23:31 
AnswerRe: USB mass storage vs USB HID Pin
«_Superman_»3-Nov-10 6:24
professional«_Superman_»3-Nov-10 6:24 
GeneralRe: USB mass storage vs USB HID Pin
Subrat Patnaik3-Nov-10 19:06
Subrat Patnaik3-Nov-10 19:06 
GeneralRe: USB mass storage vs USB HID Pin
«_Superman_»4-Nov-10 7:02
professional«_Superman_»4-Nov-10 7:02 
QuestionSleep Function Pin
MsmVc2-Nov-10 22:43
MsmVc2-Nov-10 22:43 
AnswerRe: Sleep Function Pin
CPallini2-Nov-10 22:59
mveCPallini2-Nov-10 22:59 
GeneralRe: Sleep Function Pin
GAJERA2-Nov-10 23:10
GAJERA2-Nov-10 23:10 
GeneralRe: Sleep Function Pin
CPallini3-Nov-10 0:07
mveCPallini3-Nov-10 0:07 
GeneralRe: Sleep Function Pin
GAJERA3-Nov-10 0:26
GAJERA3-Nov-10 0:26 
GeneralRe: Sleep Function Pin
CPallini3-Nov-10 2:43
mveCPallini3-Nov-10 2:43 
GeneralRe: Sleep Function Pin
GAJERA3-Nov-10 17:45
GAJERA3-Nov-10 17:45 
AnswerRe: Sleep Function Pin
Cedric Moonen2-Nov-10 23:09
Cedric Moonen2-Nov-10 23:09 
AnswerRe: Sleep Function Pin
Chris Meech3-Nov-10 2:31
Chris Meech3-Nov-10 2:31 
AnswerRe: Sleep Function Pin
Stephen Hewitt3-Nov-10 4:16
Stephen Hewitt3-Nov-10 4:16 
AnswerRe: Sleep Function Pin
«_Superman_»3-Nov-10 6:29
professional«_Superman_»3-Nov-10 6:29 
Questionproblems with arrays Pin
rezen852-Nov-10 22:28
rezen852-Nov-10 22:28 
hi,i have written the code as shown below and it's to capture real time temperature but i have a problem to capture the temperature readings which i declare it as
C++
tmpVALUE
.I tried to place the readings to the arrays but it gave me an error:(error:
C++
tmpVALUE
was not declared in this scope.Please advice.
C++
float tmpVALUE = 0;
int i=0;
void setup()
{
  SensorEvent.setBoardMode(SENS_ON);
 
  XBee.setMode(XBEE_ON);
  delay(50);
  USB.println("Start");
  delay(100);
}

void loop()
{
   char MSG[10]={tmpVALUE}; 
  char* MSG0=0; 
    //char *start;
    int i=0;
  
  float tmpVALUE=0;
  tmpVALUE = SensorEvent.readValue(SENS_SOCKET5);
  
  if(tmpVALUE>0.5)
  {
    tmpVALUE=((tmpVALUE-0.500)/0.010);
  }
  else
  {
    tmpVALUE=tmpVALUE/0.010;
  }
  
  delay(100);
  XBee.print("Temperature: ");
  XBee.println(tmpVALUE);
  
  //start=MSG[10];
  
  //Terminate the temperature taking
   for (int i=0; i<10; i++)
  {
    MSG0[i]=tmpValue;
    MSG1[i]=tmpValue;
    MSG2[i]=tmpValue;
    MSG3[i]=tmpValue;
    MSG4[i]=tmpValue;
    MSG5[i]=tmpValue;
    MSG6[i]=tmpValue;
    MSG7[i]=tmpValue;
    MSG8[i]=tmpValue;
    MSG9[i]=tmpValue;
  }
  
  xbee.OFF();
  delay(5000);
}

AnswerRe: problems with arrays Pin
Richard MacCutchan2-Nov-10 22:32
mveRichard MacCutchan2-Nov-10 22:32 

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.