Thread: Error SetTrigger

  1. #1
    Registered User
    Join Date
    Dec 2007

    Question Error SetTrigger

    << mod: split from >>
    I tried this code
    but the call of 'pITaskTrigger->SetTrigger(&trigger)'
    returns the error

    Any ideas why?

    I'm using Visual C++ 6 and Windows 2003 Server

    setting trigger.cbTriggerSize to
    sizeof (TASK_TRIGGER)+2
    instead of
    sizeof (TASK_TRIGGER)
    makes the code work. I have no idea why
    Last edited by Salem; 12-20-2007 at 08:29 AM. Reason: Split bump from dead thread - see the rules.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Don't get yourself in trouble - stick to this thread....

    Are you absolutely sure that using "sizeof(TASK_TRIGGER)+2" makes it "work"? Because the size of that structure has not changed when comparing the version that ships with VC 6.0 (which is extremely old) and the Windows Server 2003 R2 Platform SDK.


Popular pages Recent additions subscribe to a feed