Serial port (COM interface) programming

Previous topic - Next topic

Schranz0r

#15
I guess the line:

Code (glbasic) Select
buf[(int)nread] = '\0';

should be:

Code (glbasic) Select
buf[(int)nread] = "\0";

or:

Code (glbasic) Select
buf[(int)nread] = &'\0&';

Only KittyHello can tell...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kitty Hello