我从串行端口读取字节,但需要将它们转换为带符号的8位整数(SByte)。不幸的是,VisualBasic中的溢出检查阻止了字节值255在SByte中变为-1。所以,从本质上讲,我想做以下几件事:int8_t b = (int8_t)a; // b == -1
如何在VisualBasic中执行此操作?
我正在尝试读取包含JSON的URLAn unhandled exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.dll
Additional information: Error reading JObject from JsonReader.代码