How can I solve the problem?

W

wangyang

I run the program in MFC.

VARIANT vtInt;
vtInt.vt = VT_INT;
vtInt.intVal = wdFieldRef;//set the type of field
CField fd = fds.Add(rg,&vtInt);



error C2065: 'wdFieldRef' : undeclared identifier
error C2660: 'CFields::Add' : function does not take 2 arguments
 
Top