Re: [dws-developer] COMVariantArray
Brought to you by:
hhernler,
mackermann
From: Mark <mnm...@co...> - 2003-09-19 20:23:39
|
Andreas Luleich wrote: [...] > > PS: Mark - I did not forget you. The ToolsAPI wrapper grows (and slows) > and I am not a master of describing ideas. But your UnitCompEditor did a > great job after copying the complete ToolsAPI.pas into it and pressing > the "Generate Code" button (and 10 Minutes waiting ;) Glad to hear the UnitCompEditor worked well for you. I stil want to know how you wrapped the interface. :) The reason it took about 10 minutes is because it calls the OTA method to create a method. This is what happens when you double-click an event on the object inspector and it creates the event code and places your cursor there. But, in order to write to the editor using the OTA, it requires you to write the ENTIRE file (if I remember right... it's been awhile). There isn't a "read from position". So with each method OnEval it parses the whole file, finds where to put the code and writes out the whole code. Then it repeats for each method. So you can see how it gets slower and slower. :) The idea is that it would be good for wrapping a form, datamod, utilities, etc. Wrapping a whole thing like the VCL, OTA, Indy, etc. would be a pain. It's best suited to things that are likely to change where you want easier access to it for updating it, etc. I'm just days away from a new wrapper interface. An application that takes it fully through the process of reading a .pas file and creating the wrapper in a configurable way. Your customizations are stored and persist. It creates a component to do all the wrapping so it isn't in the DFM. Please share your wrapping solution... I'm very curious. :) -Mark E. |