a error of misunderstanding

  Last summer vacation, a classmate contacted with me and we finished a intelligent car project with indoor logistic system. One member of team is  in charge of reading the car‘s manual and testing the functions with C# program. And my job is finishing some functions in MFC interface by the reference of his C# program.

  In this procedure, a error crashed out. A C# method and a mfc method are in the same. When I finished this part of work, however,  the car didn‘t move. I checked the code many times. Then I deleted all code and recode it. However, it still didn‘t work.

  Fortunately, after thinking long time about it, I solved it.  Before this vacation, I learned using wireshark to get some bag on the transmission of signal and understand all meaning in some bag. And my program is  using hTTP to connect to the car. Then I used wireshark to get the two kind of different  bags and understand some parameter was wrong in my bag.  

  However these two methods have the same parameter list. And I just copied the parameter list to my method. I knowed  there must be something wrong. So I searched the method in Internet and checked the meaning of every parameter. At last I found there is a parameter with the same name in C# method and c method. It represents different meaning and parameter in Htttp transmission.  Then  I altered it. And it worked.

  We should not just copy code. Even we think  we have understood it all. There must be something you don‘t know. We should be serious to every line in our text.

时间: 2024-10-12 12:17:38

a error of misunderstanding的相关文章

C++工程编译之“error LNK2001: 无法解析的外部符号”

今天一整天都在折腾“error LNK2001: 无法解析的外部符号”,就在头疼不已的时候,总算是找到问题原因了:各个动态链接库的编译方式必须统一才行,要不然很容易对库函数的引用产生冲突.简单来说就是,如果使用的第三方函数库编译方式采用/MD,那么主工程也应该使用/MD.我使用了libevent,而主工程默认采用/MT,所以需要忽略一大堆的函数库,我还纳闷呢,怎么会这么奇怪!!今天总算是解决了长久以来的困惑了. 下面引用一篇文章的描述:[Z]VC运行库版本不同导致链接.LIB静态库时发生重复定义

【转】Windows Error Code(windows错误代码详解)

本文来自: http://blog.sina.com.cn/s/blog_5e45d1be0100i0dr.html http://blog.sina.com.cn/s/blog_5e45d1be0100i0dt.html http://blog.sina.com.cn/s/blog_5e45d1be0100i0dv.html 这三篇,因为格式实在太乱,因此拿来整理了一下.找这个的原因是今天在改程序的时候蹦出来个WindowsError: [Error 2],也没有说这个东西是什么错误.于是百度

SpringBoot接口服务处理Whitelabel Error Page

转载请注明来源:http://blog.csdn.net/loongshawn/article/details/50915979 <SpringBoot接口服务处理Whitelabel Error Page> <Maven依赖载入错误的情况分析> <Java Webproject转换为基于Maven的Webproject> <Maven Webproject执行异常:Maven.multiModuleProjectDirectory system propery

Android 编译错误——布局 Error parsing XML: not well-formed (invalid token)

在修改了Android布局文件后,编译出现Error parsing XML: not well-formed (invalid token). 首先先排查xml文件的编码格式是否为UTF-8, <?xml version="1.0" encoding="utf-8"?> ,注意,从别处copy的要留意编码格式! 还有各个标签是否有遗漏,把鼠标箭头移到出错误的layout上 点击鼠标右键选择Source然后再选Format. 都没有问题,结果发现报错处(

error C2143: syntax error : missing &#39;;&#39; before &#39;{&#39;

这是我在实现哈夫曼树的时候,遇到的错误,具体为什么我也不清楚!!!因为这是我用学校实验室的电脑编译出现的错误(用的软件是VC6.0,贼老的版本!!!),我自己的是Code Blocks(没有出错)??? 代码如下: for ( i = 1; i <= n; i++ ) { huffNode HT[i](w[i],0,0,0);//初始化前n个节点(构造哈夫曼树的原始节点) } 然后,就有错了(-_-!) error C2057: expected constant expression erro

redis error It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING

应用redis出现如下错误 It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING 参考stack overflow上文章 http://stackoverflow.com/questions/30895507/it-was-not-possible-to-connec

error: stray &#39;\377&#39; in program

cygwin编译报错:**.cpp:1:1: error: stray '\377' in program解决方法 2014-06-12 00:41 2061人阅读 评论(1) 收藏 举报 编译报错内容: [armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp jni/../../Classes/HelloWorldScene.cpp:1:1: error: stray '\377' in programjni/..

ansible控制windows安装及运行error与解决方法

Q1:安装kerberos报错 $ sudo pip install kerberos running build_ext building 'kerberos' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -

ava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind (解决思路)

当我们在启动tomcat服务的时候报错信息:java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bin 分析:从错误信息中我们可以看到是socket   java虚拟机报错凭经验这个一般是端口被占用引起的 解决方案: (一) 直接修改啊tomcat服务器的端口 步骤: 1: \Program Files\Apache Software Foundation\Tomcat 7.0\conf 找到tomcat->c