var Actions: array of integer added to the procedure parameter
Actions[I-1] := iacoll.type_; added to build a list of actiontypes
that way you can have knowledge of the kind of actions in vista without comparing the strings to a resource string.
Search found 23 matches
- Mon Sep 29, 2008 10:05 am
- Forum: VCL Scheduling Agent
- Topic: suggestion
- Replies: 2
- Views: 10959
- Sun Sep 28, 2008 4:04 pm
- Forum: VCL Scheduling Agent
- Topic: suggestion
- Replies: 2
- Views: 10959
suggestion
to facilitate localisation i suggest the following codechange: procedure TTaskItem.GetTasksLists(AList1: TStringlist; AList2: TStringlist;var Actions: array of integer); var iacoll: IActionCollection; c: Integer; I: Integer; begin with FInterface as IRegisteredTask do begin iacoll := get_Definition....
- Fri Sep 19, 2008 4:21 pm
- Forum: VCL Scheduling Agent
- Topic: Linker error
- Replies: 2
- Views: 10682
please, obviously the proper file is included if not nothing would link up. I have almost completely finished an entire application using taskscheduler component, and all functions link properly, with the exception of this one. Addendum: I changed the getter function name in the TTrigger class satas...
- Fri Sep 19, 2008 4:17 pm
- Forum: VCL Scheduling Agent
- Topic: Setting Time using ITaskSettings interface
- Replies: 6
- Views: 17201
well, first thing i did before posting was trying: PT1H PT2H0M P0M3D P0Y0M1DT0H0M which didnt work. So thats why i compiled YOUR delphidemo, tried to set the expiration limit with using your Properties Interface on an already preexisting task set by the native Windows TaskScheduler interface. Didnt ...
- Thu Sep 18, 2008 4:37 pm
- Forum: VCL Scheduling Agent
- Topic: Linker error
- Replies: 2
- Views: 10682
Linker error
WideString temp=FTask->Triggers->operator [](CurAction)->UserName; gets linker error: [ILINK32 Error] Error: Unresolved external '__fastcall Satask::TTrigger::GetUserNameA()' referenced from C:\USERS\PETER\DOCUMENTS\RAD STUDIO\PROJECTS\TASKEXPLORER\DEBUG_BUILD\PROPERTIES.OBJ i have satask.pas includ...
- Thu Sep 18, 2008 4:33 pm
- Forum: VCL Scheduling Agent
- Topic: Setting Time using ITaskSettings interface
- Replies: 6
- Views: 17201
EndDate in itself doesn't really cause any problems. i use FTask->Triggers->operator [](MultipleActionsIndex)->EndDate=TEndDate->AsDate(); where TEndDate is a TEdit decendant with a TDateTime as member, it returns a valid TDateTime at all times. And that works ok. Just when i do: FTask->TaskDefiniti...
- Thu Sep 18, 2008 6:03 am
- Forum: VCL Scheduling Agent
- Topic: Setting Time using ITaskSettings interface
- Replies: 6
- Views: 17201
- Sat Sep 13, 2008 5:30 pm
- Forum: VCL Scheduling Agent
- Topic: Setting Time using ITaskSettings interface
- Replies: 6
- Views: 17201
Setting Time using ITaskSettings interface
Using any method/property that takes a date/time as documented format (The format for this string is PnYnMnDTnHnMn etc) throws an exception. At first i quessed i did it wrong, but i ran the provided Delphi Demo and tried to set a setting it gave the same exception. see screenshot www.petrossa.com/er...
- Sun Sep 07, 2008 6:33 pm
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
Can't get rid of the startboundary exception. I finally managed to trap the errorcode, it's SCHED_E_MISSINGNODE 0x80041319 The task XML is missing a required element or attribute. Can you point me in the direction where to fix this? Perhaps you know this immediately whilst i have to read the entire ...
- Wed Aug 27, 2008 6:43 pm
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
tnx for your efforts, i appreciate them. I can only quess there's some weird interaction that takes place between different VCL's. I use also LMD-tools v7 and it seems theres some 'i dont know what' which interacts when compiling the taskwizard.pas in a c++ project. I also build your delphidemo (ofc...
- Sat Aug 23, 2008 3:44 pm
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
it's that bothersome person again... Could this be a cause? http://www.inter-locale.com/whitepaper/DelphiI18NCookbook.html the exception goes as follows: when defining a task and you choose from the dropdowncombobox the schedule, choosing: Once only, gives (7,8)Startboundary:. Daily, gives (10,8)Sta...
- Fri Aug 22, 2008 11:37 am
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
yes i quessed as much, but the present source depends on 3rd party vcl components so i cant give it. I just hoped it meant something to you, because read i the tasksched doc the there is a StartBoundary defined in the vista taskscheduler http://msdn.microsoft.com/en-us/library/aa383967(VS.85).aspx C...
- Thu Aug 21, 2008 6:24 am
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
www.petrossa.com/sample.rar when tracing into the function i end up in the in the system lib. As its the c++ inmplementation it jumps to the ASM section. The exception occurs after this sequence procedure _LStrArrayClr(var StrArray; cnt: longint); (seems to work) procedure _WStrClr(var S); (causes t...
- Wed Aug 20, 2008 5:15 pm
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086
The Boundary Exception occurs when this function is called. FInterface := itf.RegisterTaskDefinition(CollapseName(FTaskName), FTaskDefinition, TASK_CREATE_OR_UPDATE, s, s, FTaskDefinition.Principal.LogonType, s); see www.petrossa.com/screenshot.jpg for output It only occurs in Vista (Detail: The app...
- Tue Aug 19, 2008 11:15 am
- Forum: VCL Scheduling Agent
- Topic: c++ problems
- Replies: 23
- Views: 48086