hello
I am creating a VARIANT that stores a integer value of variable but variable is not initialize.In my code the variable are "r" and"c" where r and c are the value of row and column of a table.I am using it in a split function of Cell class of my project.The code for which i create for VARIANT is as follows and syntax of Split function are as follows.Please help me how i use this variant in my code.
The code for variant is
VARIANT v;
VariantInit(&v) ;
v.vt=VT_14;
V_I4(&v)=r;
VARIANT v1;
VariantInit(&v1 );
v1.vt=VT_14;
V_I4(&v1)=r;
The syntax for Split function is
void Split(VARIANT *NumRows,VARIAN T * NumColumns)
Then what shouild i do, please help me.
I am creating a VARIANT that stores a integer value of variable but variable is not initialize.In my code the variable are "r" and"c" where r and c are the value of row and column of a table.I am using it in a split function of Cell class of my project.The code for which i create for VARIANT is as follows and syntax of Split function are as follows.Please help me how i use this variant in my code.
The code for variant is
VARIANT v;
VariantInit(&v) ;
v.vt=VT_14;
V_I4(&v)=r;
VARIANT v1;
VariantInit(&v1 );
v1.vt=VT_14;
V_I4(&v1)=r;
The syntax for Split function is
void Split(VARIANT *NumRows,VARIAN T * NumColumns)
Then what shouild i do, please help me.
Comment