Link to home
Start Free TrialLog in
Avatar of HarishMinu
HarishMinu

asked on

Task Scheduler API error

Hello Experts
I am getting an error " 0x80041318 : The task XML contains a value which is incorrectly formatted or out of range "  while registering a task in RegisterTaskDefinition(..)  method attached the code snippet.

Getting error when  I used the code pTimeTrigger->put_StartBoundary( _bstr_t(wTime));

When I had code the time values like  pTimeTrigger->put_StartBoundary( _bstr_t(L"2014-02-18T15:46:00") ); error is not getting  

Please advise how to use the time format

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of ltlbearand3
ltlbearand3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial