Exemplo n.º 1
0
    public static void Start(String inifilename)
    {
        int ret = Jpt.OK;

        try
        {
            ret = Jpt.ReadIni(inifilename);
        }
        catch (Exception DllNotFoundException)
        {
            throw new Exception("Could not load JPT.DLL\nHardware key missing or software not installed properly.");
        }
        if (ret != Jpt.OK)
        {
            Jpt.CleanUp();
            throw new Exception(Jpt.Error(ret));
        }
    }