RAD Studio |  |

Creating an Active Form for the Client Application
See Also
Collapse All
To create an Active Form for the Client Application

1. Because the client application will be deployed as an ActiveX control, you must have a Web server that runs on the same system as the client application. You can use a ready-made server such as Microsoft's Personal Web server or you can write your own using the socket components described in "Working with Sockets."
2. Create the client application following the steps described in Creating the client application except start by choosing FileNewActiveXActive Form, rather than beginning an ordinary client project.
3. If your client application uses a data module, add a call to explicitly create the data module in the active form initialization.
4. When your client application is finished, compile the project, and select ProjectWeb Deployment Options. In the Web Deployment Options dialog, you must do the following: On the Project page, specify the Target directory, the URL for the target directory, and the HTML directory. Typically, the Target directory and the HTML directory will be the same as the projects directory for your Web Server. The target URL is typically the name of the server machine. On the Additional Files page, include midas.dll with your client application.
5. Finally, select ProjectWebDeploy to deploy the client application as an active form.

Any Web browser that can run Active forms can run your client application by specifying the .HTM file that was created when you deployed the client application. This .HTM file has the same name as your client application project, and appears in the directory specified as the Target directory.
See Also

Generating an ActiveX Control Based On a VCL Form

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!