V
vispper
Please help me...
how can i get a field's code string with vc++ just
like 'myfield.code.text' in VB language, my code like the
follow, but it doesn't work
_Document mydoc;
mydoc.AttachDispatch(m_lpDisp);
CFields fields;
fields.AttachDispatch(mydoc.GetFields());
long count = fields.get_Count();
CField field;
for(long i=0;i<count;i++){
field.AttachDispatch(fields.Item(i+1));
AfxMessageBox(field.get_Data(),MB_OK,NULL);
}
thanks...
how can i get a field's code string with vc++ just
like 'myfield.code.text' in VB language, my code like the
follow, but it doesn't work
_Document mydoc;
mydoc.AttachDispatch(m_lpDisp);
CFields fields;
fields.AttachDispatch(mydoc.GetFields());
long count = fields.get_Count();
CField field;
for(long i=0;i<count;i++){
field.AttachDispatch(fields.Item(i+1));
AfxMessageBox(field.get_Data(),MB_OK,NULL);
}
thanks...