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

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

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

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

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

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

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