我想制作一个时钟时间。 [英] I want to make a clock time.

查看:115
本文介绍了我想制作一个时钟时间。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我想制作一个时钟时间。

I want to make a clock time.

我使用下面的代码:

MainPage::MainPage()
{
	InitializeComponent();
		int ttt;
		String^ cnv;
			SYSTEMTIME time;
			GetLocalTime(&time);
			ttt = time.wSecond;
			textBlock11->Text = ttt.ToString();
			 SetTimer(hwnd,            // handle to main window 
				ttt,            // timer identifier 
				1000,                 // 10-second interval 
				 (TIMERPROC)NULL);
}

但我收到一些错误!

我哪里做错了?

谢谢

推荐答案

看到错误信息。它应该说UWP不支持API。
Just see the error message. It should say the API is not supported in UWP.


这篇关于我想制作一个时钟时间。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆