A global interface for Micro Focus COBOL can not be generated,
because you have to supply all parameter types in each function call.

But these two demos show the basic work of how to use VPE from
MF COBOL. Of course, all other demos are possible.

For building the EXE's you also need CBLWGUI.CBL (supplied with 
MF COBOL for windows) and WINDOWS.CPY, which can be created from 
the header file windows.h (supplied with the Windows SDK) with the 
MF COBOL tool H2CPY.


MESSLOOP.CBL
============
Since it's difficult to receive and process messages in MF COBOL
(perhaps it's not, but we're not the COBOL experts!),
this tricky source shows, how to get around the problem of detecting
when - or if - the user has closed the preview.

After the preview creation with VpePreviewDoc(), the program
enters a windows message loop, so VPE and all other tasks can work.
It loops as long, as the task associated with the preview window handle
is still active.

The other way would be, to use the flag VPE_NO_USER_CLOSE, but this one
is quite more elegant (with the disadvatage, that your main application
can't execute other things).


VPEDEMO.CBL
===========
The COBOL version of the minidemo. It needs the MF COBOL runtime DLL's.
