December 19, 2002
I can't find the code to edit.

After succesfully adding a member variable of type control to a LISTVIEW1 I always get a "Build failed" message:

\maindig.h(20) ; expected following declaration of struct member

Yet there doesn't seem to be anything wrong in maindig.h?

If you want to follow my exact procedure: Create a Dialog box with class
express. Stick a LISTVIEW in the resources and use Class express in data tansfer
mode to add the control variable (I used m_Control)
Then the build will fail!

Peter


November 29, 2003
I may be nearly one year late but,
try putting this in your .h file

#include <afxcmn.h>

Phill.


"Peter" <Peter_member@pathlink.com> wrote in message news:atr3du$cfu$1@digitaldaemon.com...
> I can't find the code to edit.
>
> After succesfully adding a member variable of type control to a LISTVIEW1
I
> always get a "Build failed" message:
>
> \maindig.h(20) ; expected following declaration of struct member
>
> Yet there doesn't seem to be anything wrong in maindig.h?
>
> If you want to follow my exact procedure: Create a Dialog box with class express. Stick a LISTVIEW in the resources and use Class express in data
tansfer
> mode to add the control variable (I used m_Control)
> Then the build will fail!
>
> Peter
>
>