Use vc + +, MFC, CTR + w class wizard to add msword. After the olb (all the classes are imported), Always prompt : the error C2011: 'Fields' :' struct type redefinition : the error C2011: 'Field' : 'struct type redefinition .
My MFC mfc_word name, called word class dialog box is for DialogReport,
According to the online call word steps, I do a simple small program, there are no errors,,, but moved to their own MFC synchronization, always prompt error,,,,,,, Excuse me: 1, how to solve, no matter the msword. H is added to the mfc_worddlg. H or DialogReport. J h, all have this problem, how do I solve?? Search to redefine the problem and give suggestion is # # ifndef, but with bad 2, the problem, something to do with my DialogReport CPP # include "h", the zha get? thank you
CodePudding user response:
Word derived class header file # pragma once with this sentence
CodePudding user response:
Behind this error message should not prompt, xyz file defines the * * *, and then xyz file defines the * * *, and see where is defined, and then analysis and problem analysis to see where,