www.digitalmars.com         C & C++   DMDScript  

c++.idde - ListView control variable causing build to fail

reply Peter <Peter_member pathlink.com> writes:
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
Dec 18 2002
parent "Phill" <phill pacific.net.au> writes:
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
Nov 28 2003