VS2010下使用SerialPort类出现The variable 'comstat' is being used without being initialized
http://blog.csdn.net/stephen1315/article/details/7457294方案1:改变项目配置属性一种解决方案是改变基本运行时检查(changingtheruntimechecksinprojectsettings):在菜单Project->Projectproperties->C/C++->Codegeneration->BasicRuntimechecks