问题请教:函数参数的一些问题。
rober 2000-06-01 04:44:00 我调用一个啊API函数。原形是这样:
ULong s_read(int port,char *buf,int len);
他是从一个设备中读取数据的api函数.
我在VB中这样调用:
dim port as integer;
dim rLen as Integer;
dim buf(0 to 511) as Byte
port = 1
rLen=s_read(port,buf(0),512) '从设备中读去512个字
设备送一个'A'字母,buf(0)就是65。送'AB',buf(0)是65,buf(1)是66
问题是:当设备送中文过来时,比如:“你"字。我看到buf(0)是196,buf(1)是227。我怎么才能显示出中文呢?