Component | Description |
Create a project
|
Copy the sample server directory with all files and subdirectories to the project directory and open the Visual Studio solution at the copied location. |
Item Configuration
|
The sample server has a CSV data file for each item. The HDA browse methods search the subdirectories of the EXE directory for such files and present a corresponding branch / item tree structure. |
Server Registration
|
Each server needs to have unique registration definitions (CLSID, AppID, ProdID). Change the sample server registration definitions, either in the HDANSrv.Net4.exe.config file or in the SeverAdapt.cs/vb program module. Execute the RegServer.bat file register the server.
The file name of the generic server (HDANSrv.Net4.exe) may be changed according the user preference. In this case also the name of the configuration file and the file names in the registration BAT files need to be adapted.
|
Deployment
|
The server EXE and the customization DLL need to be in the same directory and the RegServer.bat file must be executed in this directory.
|
DCOM Configuration
|
If more than one user does access the server then it's advisable to assign a specific launching user for this server. This is done with DCOMCNFG. If this is not done then multiple instances of the server may run in different users. As long as only one user accesses the server at any given time then this is normally no problem. However if multiple user access concurrently then multiple instances of the server will be launched. For the client this makes no difference but the server's device communication may not work properly.
|