Ejemplo 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));
        }
Ejemplo n.º 2
0
 public static Variant Create(bool value)
 {
     return(new Variant(Variant_c.Constructor(MSVCR100.New(SizeOf), value)));
 }
Ejemplo n.º 3
0
 public static StdString Create(string str)
 {
     byte[] bytes = Encoding.ASCII.GetBytes(str);
     return(new StdString(String_c.Constructor(MSVCR100.New(0x14), bytes, bytes.Length)));
 }