Re: RO vs kbmMW



Lauchlan M wrote:

What you do is add new functions and procedures in the sevice builder, and
then the regeneration  regernerates the .inf file but not the .impl file
(IIRC). So you need to update the .impl file manually so its procedures and
methods match the .intf file. There is a neat trick for this which I don't
recall exactly as I don't have Delphi open right now and haven't for a while
(I am currently taking time off programming to write up my Ph.D), but
involves using ctrl-space. I believe there might be a FAQ article on the
website about this topic.

The trick is to go into the interface of your Impl class and ctrl+space. The class implements an IInterface. That interface is what is defined by the service builder. Since Delphi 7 (I believe) you have been able to ctrl+space in a class that implements and interface and code completion will give you a list of methods, in red, which are declared in the interface but not yet implemented.


In other words, update your service in Service Builder, syntax check your project to get RO to update your Intf (you can cancel the syntax check as soon as it starts, RO has done it's thing), then ctrl+space and hit enter for each new, red method in your Impl class. Then you can do the usual CTRL+SHIFT+C to generate methods bodies for your declarations.
.