Before the project compiles, it needs a reference to the main .NET Framework runtime environment of Component Enabler.
Under the References item in the Solution Explorer pane, right-click and choose Add Reference to display the Add Reference dialog.
Choose Browse, and navigate to the Component Enabler directory containing the CEdotNET.dll file.
Choose the CEdotNET.dll file, and click OK, then OK again on the Add Reference dialog.
This adds the CEDotNET item under the References node displayed in the Solution Explorer window.
If you receive any warnings at the end of the conversion step as mentioned above, they should be corrected at this point.
The conversion utility sometimes convert the Java byte arrays to C# sbyte (short byte) arrays. These need to be changed to carry full 8 bit data (for extended ASCII). To change them, perform the following:
On the Field Translator.cs (C Sharp) find, and replace, all occurrences of sbyte, with byte.
For example:
Change
public virtual int decode(sbyte[] input, int inPos, int inLen, char[] output, int outPos, int outLen, bool pad, char type)
To
public virtual int decode(byte[] input, int inPos, int inLen, char[] output, int outPos, int outLen, bool pad, char type)
Change the 'virtual' keyword on the declarations of the following methods, to 'override'. This is a .NET Framework versus Java difference in inheritance and virtual methods.
The methods you need to change are:
encode
decode
maxCharsIn
maxBytesIn
getLengthMultiplier
For example:
Change
public override int decode(sbyte[] input, int inPos, int inLen, char[] output, int outPos, int outLen, bool pad, char type)
To
public override int decode(byte[] input, int inPos, int inLen, char[] output, int outPos, int outLen, bool pad, char type)
The project should now compile.