Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't create window in a ATL Service project! Help!!!

3 views
Skip to first unread message

Headsman Hau

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to
It is inside a ATL Service Project.

what's the problem of the follow code segment?
///////////////////////////////////////////
CTempDlg *pDlg;
pDlg = new CTempDlg;
pDlg->Create(IDD_TEMP);   <------ run time error
///////////////////////////////////////////
during installion I've added the desktop interactive option
///////////////////////////////////////////
SC_HANDLE hService = ::CreateService(
    hSCM, m_szServiceName, m_szServiceName, SERVICE_ALL_ACCESS,
    SERVICE_WIN32_OWN_PROCESS|SERVICE_INTERACTIVE_PROCESS,
    SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,
    szFilePath, NULL, NULL, _T("RPCSS\0"), NULL, NULL);
///////////////////////////////////////////

0 new messages