Ejemplo n.º 1
0
        private void makeInstance(string compilerPath, string driverPath, string preprocessorPath)
        {
            im = new InstanceMarker();
            im.LoadCompilerDll(compilerPath);
            im.LoadDriverDll(driverPath);
            im.LoadPreprocessorDll(preprocessorPath);

            compiler     = im.GetCompiler("mucomDotNET.Compiler.Compiler");
            driver       = im.GetDriver("mucomDotNET.Driver.Driver");
            preprocessor = im.GetPreprocessor("M98DotNETcore.M98");

            if (compiler == null || driver == null || preprocessor == null)
            {
                throw new Exception("インスタンスの生成に失敗しました。");
            }
        }
Ejemplo n.º 2
0
        public mucomManager(string compilerPath, string driverPath, string preprocessorPath, Action <string> disp, Setting setting)
        {
            try
            {
                this.disp    = disp;
                this.setting = setting;

                makeInstance(compilerPath, driverPath, preprocessorPath);

                ok = true;
            }
            catch
            {
                this.compiler     = null;
                this.driver       = null;
                this.preprocessor = null;
                ok = false;
                throw;
            }
        }