Hello, I am creating a hydra interface for delphi 7. I am using version 22.214.171.1243 of Hydra.
First, when I import it into Delphi, I have no enumeration, I have to recreate them. I recreate them exactly the same, however, when I call my function, the “numeric” values of my enumeration do not match.
public enum AccessMode
/// Undetermined value
AccessNone = 0,
/// <summary> /// Access through Vidal expert /// </summary> VidalExpert = 1, /// <summary> /// Access through Tomcat Web service /// </summary> WebService = 2 }
AccessMode = (AccessNone = 0, VidalExpert = 1, WebService = 2);
If I pass the value “VidalExpert”, on the C # side I get a random value, often close to 300000 and not 1.
Any idea what I’m doing wrong? Perhaps an attribute ?