资源简介
联网校时 获取网络时间
代码片段和文件信息
// GetNetworkTime.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “GetNetworkTime.h“
#include “GetNetworkTimeDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGetNetworkTimeApp
BEGIN_MESSAGE_MAP(CGetNetworkTimeApp CWinApp)
//{{AFX_MSG_MAP(CGetNetworkTimeApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGetNetworkTimeApp construction
CGetNetworkTimeApp::CGetNetworkTimeApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGetNetworkTimeApp object
CGetNetworkTimeApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGetNetworkTimeApp initialization
BOOL CGetNetworkTimeApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
// Standard initialization
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CGetNetworkTimeDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
- 上一篇:祖玛游戏源代码
- 下一篇:无陀螺捷联式惯性导航系统
相关资源
- VC 获得文件属性 获取文件的创建时
- DAS1302蜂鸣 独立按键 闹钟设定 IIC存储
- 混沌时间序列分析工具箱
- flash 倒计时器
- 带时间温度显示的室内灯光控制系统
- Todolist(最佳中文版时间管理工具)
- 桌面显示时间小程序
- window ping命令加时间并记录日志
- 基于经济时间序列预测的露天矿开采
- VisualSVN-VS2019V7.0解除时间限制
- aspose-cells-8.6.1最新完美破解版无水印
- 如何选择环路带宽平衡抖动、相位噪
- HP-零停机时间数据备份解决方案
- 移动端日期时间选择控件
- 不同时间的运动训练对小鼠骨骼肌E
- 不同持续时间低氧后运动对大鼠骨骼
- 约化分子电距矢量用于茎用莴苣花挥
- 基于Nested Logit模型的出行路线方式选
- 基于时间加权-新陈代谢GM(11)模型在
- 西数蓝盘时间清零工具
- 顾客具有不耐烦时间的M/G/1K-重休假排
- 基于ROTDR的光纤温度传感时间极限测量
- 文件时间戳记同步(更改)工具
- 沉积时间对Al-Mg合金的形貌、组分和防
- 腐蚀时间对Al-Ni-Ce非晶合金腐蚀行为的
- NaCl溶液中多组分瓦斯水合物的成核诱
- 基于神经网络的时间序列预测方法
- 中文语音播报音频文件[阿拉伯数字
- RevTime(智能解除共享软件的时间限制
- 最优滤波理论及其应用 现代时间序列
评论
共有 条评论