示例#1
0
文件: structs.cs 项目: qmgindi/Au
 public VARIANT(string x) : this()
 {
     vt = Api.VARENUM.VT_BSTR; value = Marshal.StringToBSTR(x);
 }
示例#2
0
文件: structs.cs 项目: qmgindi/Au
        //note: cannot use FieldOffset because of different 32/64 bit size

        public VARIANT(int x) : this()
        {
            vt = Api.VARENUM.VT_I4; value = x;
        }