Microsoft Visual C++ MFC ActiveX project which uses a Visual Prolog DLL with VPI

 

Copyright (c) 1984 - 1998 Prolog Development Center A/S

Written by Konstantin Ivanov

 

Note:

The Microsoft Visual C++ 5.0 SP3 was used to create this example.

 

Short description of the example:

This example demonstrates how ActiveX control can use Prolog code that is contained in DLL. The main target of this DLL is to display a map of Denmark in a given viewport. The AciveX control creates a custom control with the help of an export function of above mentioned DLL (dll1.dll) and passes its rectangle as a viewport to show a map.

 

How to run the example:

1. Run Visual Prolog and build <PRODIR>\FOREIGN\EXAMPLES\DLLS\UseVPI\Dll1\dll1.vpr.

2. Open X_VPI.dsw by Microsoft Developer Studio, build and run the example with the help of ActiveX test container this example.

 

See also: Using Visual Prolog DLL’s from other languages