将当天作为masm上的数字获取?
我想要一个程序每月执行两次 X 任务。所以我想将当前日期作为数字,这样我可以做类似 if day == 1 or 15 then do X 的
事情有人有一个简单的 masm 示例来将当前日期作为数字吗?
我正在寻找代码简单性,以便我可以理解它的作用,也许有一些我可以调用的 win api。
I want a program to do X task twice a month. So I though about getting the current day as number so I could do something like if day == 1 or 15 then do X
Does someone has a simple masm example to get the current day as a number?
I am looking for code simplicity so I can understand what it does, maybe there's some win api I could call.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从 localTime STRUCT 中获取当前星期或月份的日期。请访问我的博客为 masm32 编程设置 Visual Studio 10,了解有关如何设置 Visual Studio 的详细信息工作室。
You can pull the current day of the week or month from the localTime STRUCT. Visit my blog Set up visual studio 10 for masm32 programming for details on how to setup visual studio.