Duplicate type declarations in CodeFirst server

delphi
(Stuart Clennett) #1

Hi,

I recently converted a large custom Delphi server to code-first, and when i create the library interface unit (via the Connec to Remoting SDK server… menu option) it creates duplicate declarations of StringArray and UserInfo that are also in DataAbstract4_Intf.

This is now causing a few “Types of actual and formal var parameters must be identical”

Which declaration should I stick with? Is DataAbstract4_Intf no longer necessary in code-first servers?

Thanks

0 Likes

(Stuart Clennett) #2

I think I may have it sussed.

Use DataAbstract4_Intf on the server, and my own access units on the client ??

0 Likes

(EvgenyK) #3

yep, it will work because DataAbstract4_Intf is Code-First compatible.

0 Likes

(Stuart Clennett) #4

Great, thanks for the confirmation.

0 Likes