listbox and dialog problems

I made a program that is dialog based program.  I have a listbox that I want to doubleclick on something in the listbox and have it show up in an edit control.  Know I know that I need to go into classwizard and choose the listboxes Object ID and choose BN_dblclicked message so that when I dblclick on something in the listbox it will actually do something.  When I choose the Classname that I want this to work in, thte object ID for my listbox does not show up in the CDlg but only in the CApp, I want to choose it for CDlg.  Now if I need to choose the one for CApp how do I make it so that when I dblclick on the listbox in the dialog it will actually show something in the edit box on the same dialog?  I tried it and when I compiled it the member variables for the listbox and the edit control are not valid variables in the CApp but they are in the CDlg.  
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try to delete and rebuild your .CLW file (should be named after the project name).

After you do this, inspect your CDlg file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
simongodAuthor Commented:
it worked thanks, is there a problem with VC++ ver 6 that it does that?  I have the lastest service pack for it (i think that it installed correctly)
It has always been a problem, sometimes it is causes when using the source safe program (then files get read only so they can't be writen).
I never investigated exactly what causes the bug, probably because the solution is rather simple and it almost doesn't happen.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.