Consultor Eletrônico



Kbase P140324: How to generate a 32-bit .NET proxy on Windows 64-bit
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   24/06/2009
Status: Unverified

GOAL:

How to generate a 32-bit .NET proxy on Windows 64-bit

GOAL:

Can a 32-bit .NET Open Client applications run under Windows 64-bit

FACT(s) (Environment):

OpenEdge 10.x
Windows
x86_64 (AMD64/EMT64)

FIX:

When installing OpenEdge Win32 OpenEdge on a 64-bit platform, the ProxyGen can be used to generate 32-bit proxies.

The application must use /platform:x86 flag when using both ProxyGen and when building the .NET application in order to build a valid 32-bit application.
The .NET application needs to be compiled with the /platform:x86 compiler option. Additionally, it is recommended that the application developer use the 32-bit version of the compiler. This application will function properly on either a 32-bit or 64-bit Windows platform.

This application will function properly on either a 32-bit or 64-bit Windows platform.

The following line has to be added in the .xpxg file in order to allow the ProxyGen to generate 32-bit .NET proxies:
<DotNetSwitches>/platform:x86</DotNetSwitches>


See below an example of .NET command line which generates a 32-bit .NET application:
C:\OpenEdge\WRK\tca\basicdt.dir>c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc /platform:x86 /t:exe /r:Progress.o4glrt.dll /r:MyDotNetProxy.dll /out:MyDotNetExe.exe Class1.cs