- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
每个学习C++BUILDER的人必须看的东西。
The TeamB guide to avoiding common mistakes in C++Builder.
This article contains a list of suggestions put together by the members of TeamB for C++Builder. The suggestions will help you avoid subtle coding errors that often have disastrous effects at runtime. Most of the suggestions in the list contain a link to a paragraph of text that explains why you should follow the suggestion. Some of the suggestions are self explanatory, and these suggestions dont have a corresponding link.
Note: Updated Feb 21, 2000. New items have a NEW icon.
1. AnsiString
1.1 Dont store the result of AnsiString::c_str()
1.2 Dont use the unsigned long constructor for AnsiString
1.3 Dont use the += AnsiString operator on properties
2. TList
2.1 Dont forget to delete pointers in a TList
2.2 Dont delete the void pointers in a TList
2.3 Dont overuse the TList class
3. General VCL suggestions
3.1 Dont Change the Name property of a control at runtime
3.2 Dont forget to set the Parent property of a control created at runtime
3.3 Dont set the Parent property of MDI child forms
3.4 Dont forget to call Synchronize when modifying visual controls in a background thread
3.5 Dont delete child controls after their parent is gone
3.6 Dont pass parameters by reference to property methods
3.7 Dont use the Selected property of TListBox in single selection ListBox controls
3.8 Dont try to put more than 32k of text into a TMemo on Win95/Win98
3.9 Dont use OnCreate and OnDestroy, use C++ constructors and destructors instead
3.10 Use new instead of Application-CreateForm
4. C++ Language Suggestions
4.1 Dont mix operator new[] with delete, and dont mix delete[] with new
4.2 Always set a pointer variable to NULL or 0 after deleting it
4.3 Dont use memset or ZeroMemory as constructor replacements
4.4 Dont make assumptions about the size of an enum variable
Project Suggestions
5.1 Dont alter the makefile switches for alignment or enum var
您可能关注的文档
最近下载
- 2025年上海市xx乡镇“十五五”发展规划.docx VIP
- 青年教师基本功比赛演讲题目及评分标准(大全5篇).pdf VIP
- 体例格式6:工学一体化课程《windows服务器基础配置与局域网组建》任务4学习任务分析表.docx VIP
- 人教版小学六年级数学上册单元测试题 全册.pdf VIP
- 3.3立体图形的表面展开图(2个知识点+7类热点题型讲练+强化训练)2024-2025学年七年级数学上册同步学与练(华东师大版2024)[含答案].pdf VIP
- 文献检索与论文写作PPT课件.pptx
- 大学生暑假社会实践总结分享汇报PPT课件.pptx VIP
- 提高心理韧性的技巧和策略.pptx VIP
- 京津冀交通一体化问题及政策支撑研究.docx VIP
- 公司货物运输管理制度.docx VIP
文档评论(0)