PInvoke Example

The supplied PInvoke sample demonstrates Platform Invoke.

See the Pinvoke example, which is with the examples. See Start > All Programs > Micro Focus Visual COBOL > Samples. This example contains the following of interest:

To run the example:

  1. Build the solution by clicking Build > Build pinvoke.
  2. Step through the program, using Debug > Step into.