We move now from V8 to V9 and I try to replace Rodl.exe. But with the new Rodl2Code I have not yet the options to create an interface or invokers?!
The V9 ServiceBuilder does produce the nice code like
function LibrarySearchAsTexts(const language: MssWebLanguageType; const searchText: UnicodeString; const
… nicely aligned and useful
RODL.exe did exactly the same
but CodeGen2 does produce a code layout that does not fit at all to the ServiceBuilder one …
function LibrarySearchAsTexts(
const language: MssWebLanguageType;
const searchText: UnicodeString;
const caseSensitive: Boolean;
const wholeWords: Boolean;
const imageFormat: MssWebImageFormatType;
const targetDPI: Integer;
…
Now what to take to get the same output as ServiceBuilder does create?
rodl2code can’t generate delphi _invk and _impl.
will log.
I’ve attached simple delphi example which demonstrates how to create codegen4 gui codegen4_gui.zip (2.2 KB)
Thank you. Looks already promising. I am building now a replacement tool for the old RODL.exe
One problem I have seen already in your sample code (adding FastMM4 for searching memory leaks)
Feedback2: The service code looks now a lot better by using the codegen4 approach. But one thing I do not understand. V8 produced for Service-Implementation
TMssWebAPI = class(TRORemoteDataModule, IMssWebAPI)
public
procedure SymbolAsBinary(…);
…
I do it already. Not a problem for my code. But see that actually as workaround. I still suggest to introduce a TObjectList.in the Delphi helper for CG4.
this is for C++Builder compatibility.
OK - not fully clear why this compatibility issues arrived between V8 and V9 and is important for a pure Delphi implementation?!
Virtual indicates me that I will override the method somewhere else. But we talk about the implementation template of the web-service. What would be the exact use case for an override?