62,017
社区成员
发帖
与我相关
我的任务
分享
static System.Timers.Timer aTimer;
static AxP2PPlayerOCX ax;
[STAThread]
static void Main(string[] args)
{
ax = new AxP2PPlayerOCX();
ax.CreateControl();
ax.DID = "PSD-016719-CBWXC";
ax.User = "admin";
ax.Pwd = "";
ax.Play();
aTimer = new System.Timers.Timer(5000);
aTimer.Elapsed += new ElapsedEventHandler(delegate(object source, ElapsedEventArgs e)
{
Console.WriteLine("正在运行"); //这里可以正常运行
string ss = ax.DID; //到这里就取不到值了????
});
aTimer.Enabled = true;
aTimer.AutoReset = false;
Console.WriteLine("现在开始延时:");
Console.ReadLine();
mc=172262