May
25
在做VC的时候,程序总是不能设置断点,不能看内部变量的值。一直没明白怎么回事。
今天在冯的朋友的帮助下终于搞清楚了。
原来是在 工程->设置中,左上角有选Win32 Debug和Win32 Release。当时选在了Release,当然就不能调试了。就像GCC编译没有加-g标志一样。
先 组建(Build)-> 清除(Clear),清除VC自动生成的文件,然后再改为Win32 Debug就好了。^^
另外,还知道了Tools --> Spy++ --> Search --> Find Window工具可以查看每个窗口元素的handle。
今天在冯的朋友的帮助下终于搞清楚了。
原来是在 工程->设置中,左上角有选Win32 Debug和Win32 Release。当时选在了Release,当然就不能调试了。就像GCC编译没有加-g标志一样。
先 组建(Build)-> 清除(Clear),清除VC自动生成的文件,然后再改为Win32 Debug就好了。^^
另外,还知道了Tools --> Spy++ --> Search --> Find Window工具可以查看每个窗口元素的handle。
May
23
[引子]
在做毕设的时候,用到VC6里面的串口控件。我对VC几乎是一窍不通的,这次做毕设里面的类型转换也困扰了我好久。在此小小总结一下。
[主要内容]
一、MSComm里用到的VARIANT, COleVariant类型与CString, BYTE之间的转换,以实现数据的发送和接收
二、CString与int的转换,实现对接收来的数据的运算
在做毕设的时候,用到VC6里面的串口控件。我对VC几乎是一窍不通的,这次做毕设里面的类型转换也困扰了我好久。在此小小总结一下。
[主要内容]
一、MSComm里用到的VARIANT, COleVariant类型与CString, BYTE之间的转换,以实现数据的发送和接收
二、CString与int的转换,实现对接收来的数据的运算
May
14
Jeffrey 拿了一张Xilinx 的PQ208的封装图在班级论坛里问BSC是什么意思
先查Google
一说BSC是指基本值(Basic),其它还有TYP(典型值),REF参考值,单位一般会在资料里说明。
二说是Basic Spacing between Centers,
三说BSC不是单位,意思是没有误差的,也就是说这间距必须符合前面的值,这个一般在指定两个脚之间的距离时出现,比如0.050BSC就是 说两脚间距必须是50mil也就是0.050英寸
参考资料:[1] [2]
再看Protel里的Xilinx PQ208封装
发现PQ208引脚中心间距为0.5mm,而封装图上写0.5BSC,那么说明BSC==mm,此PDF的基本单位就是mm,因此也肯定BSC是基本单位,且无误差的意思
最后查了一下Xilinx Support Database
有很详细的Answer:
先查Google
一说BSC是指基本值(Basic),其它还有TYP(典型值),REF参考值,单位一般会在资料里说明。
二说是Basic Spacing between Centers,
三说BSC不是单位,意思是没有误差的,也就是说这间距必须符合前面的值,这个一般在指定两个脚之间的距离时出现,比如0.050BSC就是 说两脚间距必须是50mil也就是0.050英寸
参考资料:[1] [2]
再看Protel里的Xilinx PQ208封装
发现PQ208引脚中心间距为0.5mm,而封装图上写0.5BSC,那么说明BSC==mm,此PDF的基本单位就是mm,因此也肯定BSC是基本单位,且无误差的意思
最后查了一下Xilinx Support Database
有很详细的Answer:
引用
Solution 1:
BSC means "Basic Space Between Center".
The "Drawing Requirements Manual" by Jerome Lieblich (W/C is in compliance with Mil Std 100F) defines BSC as a numerical value that is used to describe the theoretically exact size, shape, or location of a feature or datum target; this is shown on drawings enclosed in a rectangle. It is the basis for determining which permissible variations are established by tolerances on other dimensions.
Solution 2:
"BSC" is short for BASIC. It is a numerical value used to describe the theoretical exact size, shape or location of a feature or datum target. It is the basis on which permissible variations are established by tolerances on other dimensions, in notes, or by feature control symbols. Basic dimensions are displayed on the drawing enclosed in a rectangle.
BSC means "Basic Space Between Center".
The "Drawing Requirements Manual" by Jerome Lieblich (W/C is in compliance with Mil Std 100F) defines BSC as a numerical value that is used to describe the theoretically exact size, shape, or location of a feature or datum target; this is shown on drawings enclosed in a rectangle. It is the basis for determining which permissible variations are established by tolerances on other dimensions.
Solution 2:
"BSC" is short for BASIC. It is a numerical value used to describe the theoretical exact size, shape or location of a feature or datum target. It is the basis on which permissible variations are established by tolerances on other dimensions, in notes, or by feature control symbols. Basic dimensions are displayed on the drawing enclosed in a rectangle.








