Progress
Open Client
Developer’s Guide


Preparing To Generate Proxies For an ActiveX Client Using GUI ProxyGen

To configure your environment to generate an ActiveX proxy, you must first perform the following steps in the specified order:

  1. Install one of the following Progress products on a Windows system where you plan to run GUI ProxyGen:
    • Open Client Toolkit
    • ProVision Plus
  2. Download the Microsoft Java SDK Version 3.2 (or later) and the Java Virtual Machine (which might not be included in the SDK). Follow the instructions on the Microsoft Web site to complete the download and any subsequent installations.
  3. Ensure the PATH environment variable contains: Microsoft-Java-SDK-Install-Directory\bin. See Step 2.
  4. Ensure that ProxyGen can access and execute the MIDL compiler, which it needs to create a Type Library. For instructions on completing this step, see the "Setting Up the MIDL Compiler" section and the "Setting Up the Environment To Run the MIDL Compiler" section.
Setting Up the MIDL Compiler

To set up the MIDL compiler for access by ProxyGen, make sure that one of the following products is installed on the machine:

Setting Up the Environment To Run the MIDL Compiler

Once you have selected and installed one of the recommended products containing the MIDL compiler, you must set up the environment for ProxyGen to run the MIDL compiler.

For Visual J++ Version 1.1, you must perform the following additional steps:

  1. Provide access to the *.idl files using one of these techniques:
    1. Copy the *.idl files from Microsoft-Visual-J++-Install-Directory\DevStudio\Vj\include to the Progress working directory (specified during Progress product installation).
    2. NOTE: You can determine the Progress working directory by viewing the startup options in the proxygen.prm file located in the directory where you installed Progress. You can view the proxygen.prm file with a text editor.

    3. Add the Microsoft-Visual-J++-Install-Directory\DevStudio\vj\include to your INCLUDE environment variable.
  2. Ensure that the PATH environment variable contains:
    1. Microsoft-Visual-J++-Install-Directory\DevStudio\Vj\bin
    2. Microsoft-Visual-J++-Install-Directory\DevStudio\SharedIDE\bin

CAUTION: The PATH settings in Step 2 must be on the PATH after the Microsoft Java SDK bin directory.

For Visual C++, you must perform the following additional steps:

  1. Add the following startup option to the proxygen.prm file located in the directory where you installed Progress:
  2. /d:ProxyGen.UseMidlFromC++=yes 
    

    Surround this option with spaces and place it immediately before com.progress.open4gl.proxygen.gui.ProxyGen line in the proxygen.prm file. For more information about adding information to the proxygen.prm file, see the "Using GUI and Batch ProxyGen Execution Options" section in Generating and Managing Proxies."

  3. Update the PATH environment variable to include:
    1. Visual C++ bin directory — This directory contains midl.exe.
    2. For example, for Visual C++ 5.0, you would enter:

      VC++-Install-Dir\DevStudio\Vc\bin

      or

      VC++-Install-Dir\DevStudio\SharedIDE\bin

    3. 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.
    4. For example, for Visual C++ 6.0, you would enter:

      VC++-Install-Dir\Microsoft Visual Studio\Vc98\bin

      or

      VC++-Install-Dir\Microsoft Visual Studio\Common\msdev98\bin

  4. For Windows 98 only, the INCLUDE environment variable must contain the Visual C++ include directory.
  5. For example, for Visual C++ 5.0, you would include the following:

    • VC-Install-Dir\DevStudio\Vc\include
    • For example, for Visual C++ 6.0, you would include the following:

    • VC-Install-Dir\Microsoft Visual Studio\Vc98\include

For more information on using ProxyGen to generate these files, see Generating and Managing Proxies."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095