Consultor Eletrônico



Kbase 20226: How to set up the Microsoft Visual C++ MIDL compiler for access by ProxyGen when generating ActiveX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/12/2009
Status: Verified

GOAL:

How to set up the Microsoft Visual C++ MIDL compiler for access by ProxyGen when generating ActiveX proxy

GOAL:

How to Set up the environment to run the Microsoft C++ MIDL compiler

FACT(s) (Environment):

Progress 9.1x
Windows

FIX:


The ProxyGen needs to execute a MIDL compiler, in order to create a type library.

When Microsoft Visual C++ (version 5 or 6) is used, the following steps have to be followed in order to setup the MIDL compiler:

1. Add the startup option for ProxyGen is required to the proxygen.prm file:
/d:ProxyGen.UseMidlFromC++=yes.

The proxygen.prm file is located in the directory where Progress is installed.

Example of proxygen.prm file (version 9.1D):
-c @{JAVA\PROGRESSCP};@{Startup\DLC}\java\prowin.jar
wjview.exe
/d:Install.Dir=@{Startup\DLC}
/d:ProxyGen.UseMidlFromC++=yes
/d:Work.Dir=@{WorkPath}
/d:JavacCP=@{Java\JDKCP}
com.progress.open4gl.proxygen.gui.ProxyGen

2. Update the PATH environment variable to include:
a) Visual C++ bin directory - This directory contains midl.exe
b) the common directory shared by the IDE for Visual C++ and other products - This is the directory containing the *.dll files associated with midl.exe

For example, using Microsoft Visual C++ version 6, the following entries are included in the PATH environment variable:
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\VC98\bin

3. For Windows 98, the INCLUDE environment variable must contain the Visual C++ include directory.
For example, using Microsoft Visual C++ version 6, the INCLUDE environment variable contains:
C:\Program Files\Microsoft Visual Studio\VC98\include