应用匈牙利的现代Windows API项目?

发布于 2025-01-27 10:18:19 字数 81 浏览 4 评论 0原文

由于对类似问题的答案只能在匈牙利的应用程序和系统之间进行区分 - 是否有任何可用于维持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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌上青苔 2025-02-03 10:18:19

匈牙利符号是将前缀添加到变量名称的实践,以提供有关变量的其他信息。 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文