I use "sprintf" extensively .. this way I can print a line to the serial port ( just as you would the lcd screen)... ie.. the receiving PC will receive a text string with all the values contained in the string I have tested the software using the following string... "T564V343C23G22" I achieve this by...
Code:
sprintf(outbuffer,"T%dV5dC%dG%d",temp,volts,current,light);
This gives me an output buffer with the four values embedded within.
The VB app retrieves the data back to a double value for storage / displaying..