Progress
Open Client
Developer’s Guide
Batch ProxyGen Platform Options
The options for Batch ProxyGen vary depending on whether the platform is Windows or UNIX.
Windows Platforms
For Batch ProxyGen, one optional command-line switch is available to generate ActiveX proxies on Windows platforms only:
-usemidlfromc++
This tells ProxyGen to use the MIDL compiler from a Visual C++ product on the system, for example:
UNIX
Batch ProxyGen also runs on supported UNIX platforms. This allows you to generate code on UNIX for a proxy that you have defined in a project file created using GUI ProxyGen.
Batch ProxyGen runs on UNIX using the
bproxygen
command the same way it runs on Windows platforms, with the following limitations:
- It generates code only for projects that define Java proxies and that do not also define ActiveX proxies. You can only generate ActiveX proxies on Windows platforms.
- It does not support and ignores the
-usemidlfromc++
command-line switch. This switch applies to ActiveX proxies only.- It automatically converts compatible Windows pathnames to UNIX pathnames, with the exceptions described in the following paragraphs.
When you generate project (
.pxg
) files for use with Batch ProxyGen on UNIX systems, make sure all pathnames that you specify are portable to your UNIX machine. This includes the proxy directory, compiler path, and PROPATH settings.In general,
bproxygen
applies certain translation rules when reading a project file on UNIX:Using any other Windows-specific naming convention results in a non-portable project file.
To make your code more portable, you can use dot (
.
) or some other relative path as your Proxy Dir setting for all application development. You might also consider using your PATH environment variable for finding Java compiler by executable name only. Doing this also allows you to install the JDK for each platform in vendor-specified default directories without causing your application code to fail when moving from one platform to another.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |