48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="..\styles.css">
|
|
</head>
|
|
<body>
|
|
<img src="..\..\ro.png" alt="" align="right">
|
|
|
|
<!-------------------------------------------------------------------------->
|
|
|
|
<p class="h1">
|
|
<span>FirstSample</span>
|
|
</p>
|
|
|
|
|
|
<h2>Purpose</h2>
|
|
|
|
<p>This sample provides an introduction to using the Delphi edition of the RemObjects SDK product. The example shows how to define/implement methods on the server and how to access them from the client. The data consists of name information and four simple methods are provided by the service: Nicknames, VerifyName, CheckName and FullNames.</p>
|
|
|
|
<h2>Getting Started</h2>
|
|
<ul>
|
|
<li>Build or compile both projects.</li>
|
|
<li>Launch the server (via the menu option: <strong>RemObjects | Launch Server Executable</strong>).</li>
|
|
<li>Ensure that FirstSampleClient is the selected project and run it.</li>
|
|
<li>Check that the client buttons work as expected.</li>
|
|
<li>Modify the server names list and retry client actions.</li>
|
|
</ul>
|
|
<h2>Examine the Code</h2>
|
|
<ul>
|
|
<li>
|
|
See how the four methods were defined by editing the service library.
|
|
Do this by making the <strong>server</strong> the selected project and
|
|
by using the menu option: <strong>RemObjects | Edit Service Library</strong>.
|
|
Note: if you don't see this menu option but see 'Service Builder' instead,
|
|
you still have the client set as the current project.
|
|
Examine the methods added to <strong>FirstSampleService</strong>.
|
|
</li>
|
|
<li>
|
|
Check how the server methods were implemented in
|
|
<strong>FirstSampleService_Impl.pas</strong>.
|
|
</li>
|
|
<li>
|
|
Examine the simple code needed to invoke the methods in
|
|
<strong>FirstSampleClientMain.pas</strong>.
|
|
</li>
|
|
</ul>
|
|
|
|
</body>
|
|
</html> |