应用匈牙利的现代Windows API项目?
由于对类似问题的答案只能在匈牙利的应用程序和系统之间进行区分 - 是否有任何可用于维持Windows API标识符与我的代码的匈牙利前缀的全面列表?
Since answers to similar questions only go as far as to make the distinction between apps and systems Hungarian - is there any comprehensive list of apps Hungarian prefixes that could be used to maintain consistency between Windows API identifiers and the rest of my code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
匈牙利符号是将前缀添加到变量名称的实践,以提供有关变量的其他信息。 C ++核心指南阻止前缀表示法(例如,匈牙利符号)。在内部,Windows团队不再使用它。但是它的用途仍在样本和文档中。
符合符号是为了使您知道变量的类型,但是现代环境严重减轻了对此的需求。这意味着您可以避免这样做。
有关匈牙利前缀的全面列表的更多详细信息,我建议您可以参考:编码样式约定, Windows编码约定和匈牙利符号
Hungarian notation is the practice of adding prefixes to the names of variables, to give additional information about the variable. The C++ Core Guidelines discourage prefix notation (for example, Hungarian notation).Internally, the Windows team no longer uses it. But its use remains in samples and documentation.
The notation was conceived to allow you to know the type of the variable, but modern environments have seriously mitigated the need for this. It means that you can avoid having to do this.However, as for whether using Hungarian notation in your code depends on yourself.
For more details about comprehensive list of apps Hungarian prefixes, I suggest you could refer to:Coding Style Conventions ,Windows Coding Conventions and Hungarian Notation