Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread RemObjects SDK trouble
Tue, Sep 22 2015 12:52 AMPermanent Link

PhillipH

Mathew, I can't seem to get my head around the conversion of my EWB1 RO app which was based on your original RO conversations in the forum. Any chance you were thinking of updating your chat example or similar as it would be really good to see the code of a working example so I can work out what needs changing.

Phillip
Tue, Sep 22 2015 4:17 AMPermanent Link

Matthew Jones

PhillipH wrote:

> Mathew, I can't seem to get my head around the conversion of my EWB1
> RO app which was based on your original RO conversations in the
> forum. Any chance you were thinking of updating your chat example or
> similar as it would be really good to see the code of a working
> example so I can work out what needs changing.

With Tim's help, it wasn't hard at all. Assume you have the new
ROSDKUtils.wbs file, the one with the Emit's.

The server interfaces changed from

external TMyBanxiaNewUser = class
public
constructor Create(chnl: THTTPClientChannel; msg: TJSONMessage;
strServiceName: string);

to

external TMyBanxiaNewUser emit 'MyBanxiaNewUser' = class
public
constructor Create(chnl: THTTPClientChannel; msg: TJSONMessage;
strServiceName: string);

So just using an emit again.


Then the code to create it is just:

   FChannel := THTTPClientChannel.Create(szServer);
   FMessage := TJSONMessage.Create;
   m_xNewUserService := TMyBanxiaNewUser.Create(FChannel, FMessage,
'MyBanxiaNewUser');

I appear to no longer define RemObjects in any way. The depth of the
actual reference to the RO code is now hidden in the emits.

If you have specific things, post the code.


--

Matthew Jones
Tue, Sep 22 2015 6:32 AMPermanent Link

PhillipH

Absolutely brilliant thanks Matthew. Was missing how this line needed changing.   

external TMyBanxiaNewUser emit 'MyBanxiaNewUser' = class
public

Thanks very much for your help - its working now. You really made my day.
Tue, Sep 22 2015 6:59 AMPermanent Link

Matthew Jones

PhillipH wrote:

> Absolutely brilliant thanks Matthew. Was missing how this line needed
> changing.
>
> external TMyBanxiaNewUser emit 'MyBanxiaNewUser' = class
> public
>
> Thanks very much for your help - its working now. You really made my
> day.

I'm glad it is working, but it was Tim that knew how to fix it all.

I shall at some point modify my interface mangler to do this
automatically.

--

Matthew Jones
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image