Skip to main content

Building a PC*Miler Rail-Connect Client Application

Building an application with PCRSRV32.DLL is similar to using other DLLs from your C programs. You need to specify in your project the directories that contain header and library files for PC*Miler Rail-Connect.

If you installed PC*Miler Rail in C:\ALK Technologies\PCRWINXX, the PCRSRV32.DLL, headers, and libraries will be in C:\ALK Technologies\PCRWINXX\Connect. Sample code is available in the Connect_Test_Sample and Mapping_Test_Sample folders.

Your application must include PCRSAPI.H in all modules that use subroutines in PCRSRV32.DLL. This is the header file for the server API, found in the PCRWINXX\Connect\Connect_Test_Sample folder.

To call functions in the server, link the application with the supplied import library. Add PCRSRV32.LIB to your project. The method depends on your programming environment. For example, in the Borland IDE, insert PCRSRV32.LIB in your project from the project window.

To add the imported functions to your module definition file, open your project’s DEF file and the file PCRSAPI.H, then copy the function names your program will use into your project’s DEF file.

Last updated July 9, 2025.