문제

I am making a 3 tier application in c++ builder XE3 with Datasnaps and I am working on the middle tier part for now. but I have one problem, the server needs to show the information from the client too. lets say if the client pushes two ints say 5 and 5 and the server should sum them up. the server should show it in its GUI also.

long story short how do I access the ServerObject list which contain my server methods, where is it stored and can I even access it?

this is probably the most vague question I ever posted, but I can't explain any better.

도움이 되었습니까?

해결책

found it myself. the objects are accessible at the ServerPrepare Event. every time there is interaction with the server the object is available in DSPrepareEventObject->MethodInstance that must be casted to a instance of your Serverclass.

EDIT: or even better all forms are global objects :/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top