예제 #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);
        }