请教! 关于警告错误问题
Panel1->BevelOuter=bsNone;
这样写为什么有警告呢:
[BCC32 Warning] aaa.cpp(937): W8018 Assigning TFormBorderStyle to TBevelCut
Full parser context
aaa.cpp(934): parsing: void _fastcall TcaptureImgFrm::pnlUpButtonClick(TPanel *,TPanel *)
还有 下面的警告是什么警告呢?
[ILINK32 Warning] Warning: Public symbol '_hComm' defined in both module E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\CAPTUREIMAGEFRM.OBJ and E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\COMINTERFASE.OBJ
[ILINK32 Warning] Warning: Public symbol '_getComm' defined in both module E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\CAPTUREIMAGEFRM.OBJ and E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\COMINTERFASE.OBJ
[ILINK32 Warning] Warning: Public symbol '_isPressSwitch' defined in both module E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\CAPTUREIMAGEFRM.OBJ and E:\CIMAGEINFANTULTRASONIC\WIN32\DEBUG\COMINTERFASE.OBJ
[解决办法]
Panel的BevelOuter属性是一个TBevelCut类型的,你只能代入TBevelCut类型的值。
改成这样就行了:
Panel1->BevelOuter = bvNone;