有没有用于在 Windows Mobile 上更新时间和日期的 C# 示例代码?

发布于 2024-09-08 10:23:07 字数 47 浏览 1 评论 0原文

是否有用于在 Windows Mobile 上更新时间和日期的 C# 示例代码?

Is there any C# sample code for updating the time and date on Windows Mobile?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

毁我热情 2024-09-15 10:23:07

我没有任何确切的示例,但您可以通过 PInvoking SetSystemTime< /a>. SetSystemTime 的 PInvoke 页面 有一些示例代码我认为它与 CF 版本非常相似,如果在 Windows mobile 上执行 PInvoke 有任何差异,您可能可以在此页面上找到:Microsoft .NET Compact Framework 上的 P/Invoke 和封送处理简介

实际上,可能比这更容易,我刚刚找到了此页面如何:获取或设置系统时间,似乎是 CF具体的...

I don't have any exact sample, but you can do it by PInvoking SetSystemTime. The PInvoke page for SetSystemTime has some sample code which I'd thought would be very similar to the CF version and if there are any differences in doing PInvoke on Windows mobile you could probably find that out on this page: An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact Framework

Actually, might be easier than that even, I just found this page How to: Get or Set the System Time which seems to be CF specific...

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