示例#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));
        }
示例#2
0
        public string AsString()
        {
            StdString str = StdString.Create();

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

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

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

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

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

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