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:
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.
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:).
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
Now build the executable:
nmake demo
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
Now update or create the domain.cfg file in %SITE_ROOT%\master. You need to do one of the following:
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
In the Notepad window, copy the information from %BSM_ROOT%\api\dc_api\domain.cfg into the opened file.
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
Issue the following command to copy the updated domain.cfg file to %SITE_ROOT%\data:
copy domain.cfg %SITE_ROOT%\data
Create the TLKITTST key in the Registry .
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.
Demonstration application. |