Build the Demonstration Application

A sample Microsoft C++ makefile, makefile, is provided to build the demonstration program. Use this makefile as a basis for constructing makefiles for your own application.

Perform the following steps to build the executable:

  1. From the CIMPLICITY Workbench for your project, select Command Prompt... from the Tools menu.

This will ensure that your environment variables (in particular %BSM_ROOT% and %SITE_ROOT%) are set correctly.

  1. In the Command Prompt… window, issue the following commands:

<drive>

cd %BSM_ROOT%\api\dc_api

Where <drive> is the disk where your CIMPLICITY software is installed (for example, C:).

  1. If the environment variables are not set automatically, issue the following command to set them:

\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat

  1. Now build the executable:

nmake demo

  1. Issue the following commands to copy files to the correct directories:

copy tlkittst.exe %BSM_ROOT%\exe

copy tlkittst.dll %BSM_ROOT%\exe

copy TLKITTST.PROTO %BSM_ROOT%\bsm_data

copy TLKITTST.MODEL %BSM_ROOT%\bsm_data

  1. Now update or create the domain.cfg file in %SITE_ROOT%\master. You need to do one of the following:

  1. If you currently have a %SITE_ROOT%\master\domain.cfg file, issue the following commands to merge the domain information for the demo:

cd %SITE_ROOT%\master

notepad domain.cfg

  1. In the Notepad window, copy the information from %BSM_ROOT%\api\dc_api\domain.cfg into the opened file.

  2. Close and save the modified domain.cfg file.

If you do not have a %SITE_ROOT%\master\domain.cfg file, then:

copy domain.cfg %SITE_ROOT%\master

  1. Issue the following command to copy the updated domain.cfg file to %SITE_ROOT%\data:

copy domain.cfg %SITE_ROOT%\data

  1. Create the TLKITTST key in the Registry .

  2. Under the TLKITTST key, create a Value Name of Name with the string TLKITTST Devcom and the Value Name of Type with the string Protocol

Result: The demonstration communication enabler should now be able to run.

More information

Demonstration application.