Serial 0x00

Hi

I am rebuilding some processing code in OpenFrameworks. I need to read input from an Arduino which is sending 0x00 identifying a sensor as the first one.

I never receive a value 0x00 in OpenFrameworks although I do in Processing.

Could it be that the ReadFile function in the osSerial::readBytes is returning when it gets a 0x00 interpreting it as the end of a file?

  
if (!ReadFile(hComm,buffer,length,&nRead,0)){  

Cheers,
Stephen

My apologies. I was not aware that 0x00 == NULL which was causing my code to ignore it.