Syntax
int PCMSOpenServer (int appInst, int wnd)
Parameters
int appInst – The instance handle of the calling application. PC*MILER|Connect uses this if it needs to load resources from the calling application. This parameter is currently not used and may be 0.
int wnd – A handle to the window that will be used as a parent for error messages and other dialogs. This parameter is currently not used and may be 0.
Description
Initializes PC*MILER|Connect, checks your PC*MILER licenses, loads the PC*MILER highway database, and prepares the engine for routing calculations.
Return Values
Returns a valid server ID, of type PCMServerID (integer value 10000).
Sample Code
void UsePCMILER() { PCMServerID server; /* Pass neither instance handle, nor parent window*/ server = PCMSOpenServer(0, 0); /* Do other processing here. */ /* Use the server: calculate trips, etc.... */ /* Shut down the server */ PCMSCloseServer(server); }
Supported Since: PC*MILER|Connect 12
Category: Administration