![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| In ASCII code, 0x0 represent NULL. The VB code written by my fren could receive any other ASCII, except for chr$(0). Could any one tell me how to do it? | |
| |
| | (permalink) |
| I am not familar with BASIC (I'm program in C/C++), but ASCII 0 is used to terminate strings (when stored as null-terminated strings), and is often used as EOF (end of file) and EOT (end of transmission). If VB is interpreting ASCII 0 as any of those 3 things then it would appear not to be received. When you receive the data, are you storing it into a string or a Byte array? You should be using the latter. Dan East | |
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| | |
| |
| | (permalink) | |
| Quote:
A few sentences solve my problem!!!! I was thinking to re-define the communication protocol that defined by me, because the VB code written by my IT guy couldn't receive NULL | ||
| |