Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Samples at {path to FIX Antenna .NET package}\samples in FIX Antenna .NET package demonstate how to use FIX Antenna libraries.

To create new application with FIX Antenna follow next instructions:

  1. Create new Console application project in Visual Studio (FIX Antenna .NET supports Visual Studio 2010).
  2. Remove all default references expect System
  3. If application is required to run 64-bit platform add it for Debug and Release configuration with Configuration manager:

     
     

  4. Add a reference to proper FIXAntenna_net4.0.dll from package.
    For 32-bit platform: {path to FIX Antenna .NET package}\lib\x32\FIXAntenna_net4.0.dll
    For 64-bit platform: {path to FIX Antenna .NET package}\lib\x64\FIXAntenna_net4.0.dll
    Make sure that property Copy Local = true is set.

      

  5. Copy engine.properties file to your project from any of existing samples (or create it use "FIXAntenna .NET" — Programmer's Guide).

  6. Write code in Main() function to initialize engine with this properties file:

     

    program.cs
    try
    {
        FixEngine.Create("engine.properties");  // engine initialization
        // Your code
        // ...
    }
    catch (Exception ex)
    {
        Console.WriteLine(ex.ToString());
    }
    finally
    {
        FixEngine.Instance.Stop();
    }

     

     

    Note: you can add this file to project and set Copy to Output directory = Copy if newer property or use absolute path.

  7. Correct LicenseFile parameter in engine.properties. There should be absolute or relative path with filename to the license file.
    Note: LicenseFile for samples in FIXAntenna .NET package configured to root of the package (i.e {path to FIX Antenna .NET package}\engine.license). Make sure that your copy license before run samples.

  8. Create directories: logs and logs\backup in $(TargetDir) of your project.
    These directories can be configured by parameters LogDirectory and BackupDirectory in engine.properties and should be created manually.

  9. Copy required V12*.dll form {path to FIX Antenna .NET package}\lib directory to $(TargetDir) of your project. 

    (e.g. V12-vc10-MD-x64.dll for x64 Release build; V12-vc10-MDD-x32.dll for x32 Debug build and so on)

  10. Make sure that your aplication uses opened ports.

  11. Build and run application.

Troubleshooting.

If application not working correctly look to logs\engine_XXXX.log for [ERROR] and [FATAL] notes.

  • No labels