"Double block insert exists for class xx in source files"

In Embedded Visual Studio 4

, I am trying to add class

, although class wizard.

Since the file already exists, the first attempt failed. So I deleted the file and tried adding the class again.

Now I am getting the error

"A duplicate insert block exists for class xx in the source files"

and I can't figure out what to do about it other than rolling back my code.

Has anyone seen this, if yes, do you know how to fix it?

+1


source to share


1 answer


This suggests that you have duplicate blocks, not duplicate records. You may have renamed the block by mistake.

eg. say in an AFX block,

Make sure you only have one of these in MyClass.h:



//{{AFX_DATA(CMyClass)
//{{AFX_VIRTUAL(CMyClass)
//{{AFX_MSG(CMyClass)

      

... and that you only have one of these in MyClass.cpp:

//{{AFX_DATA_INIT(CMyClass)
//{{AFX_DATA_MAP(CMyClass)
//{{AFX_MSG_MAP(CMyClass)

      

0


source







All Articles