Click here to Skip to main content
15,914,452 members
Home / Discussions / COM
   

COM

 
GeneralRe: No Matching DLGINIT Pin
Prem Kumar28-Jun-02 4:39
Prem Kumar28-Jun-02 4:39 
GeneralRe: No Matching DLGINIT Pin
ssirisha28-Jun-02 6:29
ssirisha28-Jun-02 6:29 
GeneralSAFEARRAY in Variant Pin
Hans Ruck26-Jun-02 5:18
Hans Ruck26-Jun-02 5:18 
GeneralRe: SAFEARRAY in Variant Pin
Ramu Pulipati26-Jun-02 6:24
Ramu Pulipati26-Jun-02 6:24 
GeneralDCOM port restriction Pin
MrGlover24-Jun-02 13:46
MrGlover24-Jun-02 13:46 
GeneralCOM Exe that "stays" Pin
[Shadow]24-Jun-02 2:28
[Shadow]24-Jun-02 2:28 
GeneralRe: COM Exe that "stays" Pin
Ernest Laurentin24-Jun-02 4:29
Ernest Laurentin24-Jun-02 4:29 
GeneralRe: COM Exe that "stays" Pin
Jason Henderson24-Jun-02 9:16
Jason Henderson24-Jun-02 9:16 
I added a bool (bOKToShutdown) that gets set to true only if the user closes the app (from a tray icon).

void CExeModule::MonitorShutdown()
{
    while (1)
    {
        WaitForSingleObject(hEventShutdown, INFINITE);
        DWORD dwWait=0;
        do
        {
            bActivity = false;
 			dwWait = WaitForSingleObject(hEventShutdown, dwTimeOut);
        } while (dwWait == WAIT_OBJECT_0);

        // timed out
        if (!bActivity && m_nLockCnt == 0 && bOKToShutDown) // if no activity let's really bail
        {
#if _WIN32_WINNT >= 0x0400 & defined(_ATL_FREE_THREADED)
            CoSuspendClassObjects();
            if (!bActivity && m_nLockCnt == 0)
#endif
                break;
        }
    }
    CloseHandle(hEventShutdown);
    PostThreadMessage(dwThreadID, WM_QUIT, 0, 0);
}


Jason Henderson
quasi-homepage
articles
"Like it or not, I'm right!"


GeneralRef to ActiveX control using C Pin
JohnnyG23-Jun-02 14:17
JohnnyG23-Jun-02 14:17 
GeneralRe: Ref to ActiveX control using C Pin
soptest24-Jun-02 8:30
soptest24-Jun-02 8:30 
GeneralRe: Ref to ActiveX control using C Pin
JohnnyG24-Jun-02 8:59
JohnnyG24-Jun-02 8:59 
GeneralRe: Ref to ActiveX control using C Pin
soptest24-Jun-02 9:21
soptest24-Jun-02 9:21 
GeneralRe: Ref to ActiveX control using C Pin
JohnnyG30-Jun-02 14:31
JohnnyG30-Jun-02 14:31 
GeneralRe: Ref to ActiveX control using C Pin
Amit Dey1-Jul-02 6:44
Amit Dey1-Jul-02 6:44 
QuestionActiveX is "unsafe" huh? Pin
Philip Patrick22-Jun-02 6:08
professionalPhilip Patrick22-Jun-02 6:08 
AnswerRe: ActiveX is "unsafe" huh? Pin
Michael Dunn22-Jun-02 6:50
sitebuilderMichael Dunn22-Jun-02 6:50 
GeneralDCom-security question.... Pin
stefanb22-Jun-02 5:27
stefanb22-Jun-02 5:27 
GeneralRe: DCom-security question.... Pin
Jason Henderson24-Jun-02 9:20
Jason Henderson24-Jun-02 9:20 
GeneralRe: DCom-security question.... Pin
stefanb24-Jun-02 9:58
stefanb24-Jun-02 9:58 
GeneralThis one is easy! Pin
Al_Pennyworth21-Jun-02 8:24
Al_Pennyworth21-Jun-02 8:24 
GeneralDifferent Kind of problem Pin
Al_Pennyworth20-Jun-02 8:46
Al_Pennyworth20-Jun-02 8:46 
QuestionAny Idea? Pin
Al_Pennyworth20-Jun-02 4:27
Al_Pennyworth20-Jun-02 4:27 
AnswerRe: Any Idea? Pin
Rama Krishna Vavilala20-Jun-02 8:02
Rama Krishna Vavilala20-Jun-02 8:02 
GeneralRe: Any Idea? Pin
Al_Pennyworth24-Jun-02 7:05
Al_Pennyworth24-Jun-02 7:05 
AnswerRe: Any Idea? Pin
Amit Dey1-Jul-02 3:35
Amit Dey1-Jul-02 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.