// @POINTER(3) - Item ranks
nError = LSsetPointerLng( pLINGO, (void*)&dStatus,
&nPointersNow);
if ( nError) goto ErrorExit;
// Here is the script we want LINGO to run:
// Load the model, solve the model, exit.
strcpy( pcScript, "set GLOBAL 1\n TAKE shili_liuyu_reservoir.lng\n GO \n QUIT \n");
// Run the script
nError = LSexecuteScriptLng( pLINGO, pcScript);
if ( nError) goto ErrorExit;
// display solution status
printf("\nSolution status (should be 0): %d\n", (int) dStatus);