摘要:
问题如下 dll中: typedef struct tagoutputdata{ lptstr a; float b; lptstr c; lptstr d; } outputdata; extern "c" __declspec(dllexport) int __stdcall getdata(lpctstr name,float tmp......
摘要:
用自己定义的类型作返回值的函数,在自动生成的vc代码中有两种结果。 1)typedef struct aa { .......... } aa; rose自动生成return (aa *) 0; 2) typedef int myint; rose就不自动生成返回值了。 如何设定呢?谢谢。
......
救命啊怎么会这样
单片机与上位机通讯,上位机可以向下位机发送命令,下位机接到命令后也能回复
可是回复的值是乱的,根本就不是我要送到上位机的数据,怎么回事啊?
各位兄弟姐妹救命啊!
NO.1 作者: CrazyGentleman
再仔细研究一下通讯规约!
NO.2 作者: sjnny
使用二进制收发
NO.3 作者: liangsiyuan
请确认几个问题:
波特率是否一样?
串口的通信模式是否一样?一般用模式2或模式3
可以把你的代码帖出来,大家帮你看看。
NO.4 作者: liangsiyuan
十六进制收发是没有问题的。
摘要:
在sql中执行存储过程 节选: begin tran insert into bs_city(id,prov_id,city)values(1,1,1)--其中id是主键 print @@error print @@error --打印出来=0 if @@error=0 begin commit end else begin rollback end 插了2条一摸一样的记录,sql报错“不......