张志峰的博客

水滴石川,积少成多。

导航

2013年8月2日

摘要: 有时在Delphi使用指针类型的数据,总是提示如下:[Warning] FGroupFeedBack.pas(796): Unsafe typecast of 'Pointer' to 'TObject'[Warning] FGroupFeedBack.pas(696): Unsafe type 'PChar'比较烦,虽说不是bug,但是看着不爽。做程序最好做到没有waring和hints.说说怎么关闭这个waring, 其他的waring需要找出代码的不完善行,后改善,但这种waring只可以用编译命令来关闭了, 在单元的{$R *.DFM} 阅读全文

posted @ 2013-08-02 13:47 ╰★张志峰★╮ 阅读(1328) 评论(0) 推荐(0)

摘要: Display PreferencesWarning messages (Delphi)Go Up to Delphi Compiler Directives (List) IndexTypeSwitchSyntax{$WARN identifier ON | OFF | ERROR | DEFAULT}DefaultAll warnings are enabledScopeLocalRemarksThe $WARN directive gives you fine-grained control over individual warning messages.Syntax Effect{$ 阅读全文

posted @ 2013-08-02 13:34 ╰★张志峰★╮ 阅读(2822) 评论(0) 推荐(1)

摘要: delphi 编译的时候 把Warning去除的方法在添加{$WARNINGS OFF} 阅读全文

posted @ 2013-08-02 11:35 ╰★张志峰★╮ 阅读(417) 评论(0) 推荐(0)