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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top