Esempio n. 1
0
        public static Variant GetDValue(string name, bool unk)
        {
            StdString nameStr = StdString.Create(name);
            IntPtr    dval    = DistributedValue_c.GetDValue(MSVCR100.New(Variant.SizeOf), nameStr.Pointer, unk);

            return(dval == IntPtr.Zero ? null : Variant.FromPointer(dval));
        }
Esempio n. 2
0
        public string AsString()
        {
            StdString str = StdString.Create();

            Variant_c.AsString(Pointer, str.Pointer);
            return(str.ToString());
        }
Esempio n. 3
0
        public override string ToString()
        {
            StdString str = StdString.Create();

            Variant_c.SaveToString(Pointer, str.Pointer);
            return(str.ToString());
        }
Esempio n. 4
0
        public static void SaveConfig(string path, int category)
        {
            StdString pathStr = StdString.Create(path);

            DistributedValue_c.SaveConfig(pathStr.Pointer, category);
        }
Esempio n. 5
0
        public static void LoadConfig(string path, int category, bool addVariables)
        {
            StdString pathStr = StdString.Create(path);

            DistributedValue_c.LoadConfig(pathStr.Pointer, category, addVariables);
        }
Esempio n. 6
0
        public static void SetDValue(string name, Variant value)
        {
            StdString nameStr = StdString.Create(name);

            DistributedValue_c.SetDValue(nameStr.Pointer, value.Pointer);
        }
Esempio n. 7
0
        public static void Create(string name, Variant value)
        {
            StdString nameStr = StdString.Create(name);

            DistributedValue_c.AddVariable(nameStr.Pointer, value.Pointer, false, false);
        }