Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I've been using VC++ 6.0 all these days.
Recently switched to 2005 edition, but here I'm finding it difficult to add even a simple member variable to the controls.

I created a dialogue based project.
I was trying to add member variable to a ListBox and on doing this it displays an error message box saying "Run Time error has occured. Object doesn't support this property or method".

The way I tried to add a member variable is:
Drag a ListBox onto the dialogue box, right click and select "Add Variable".
At this time I get the above mentioned error.

If this is not the way, how do I do it?
Same thing I've encountered while creating class for new dialogues.
Posted
Updated 13-Dec-10 22:25pm
v2
Comments
Dalek Dave 14-Dec-10 4:25am    
Edited for Readability.

I have 2005 version 8.0.50727.762 sp 050727-7600.

I created an MFC Dialog based app

Dragged on a list box

Right click 'Add Variable'

It then came up with the window that allows you to choose a control or data type, I chose a control type, clicked ok and everything seemed fine.


Not much consolation I know, but that makes me think your problem must be down to your installation, try reinstalling and applying upto date service packs.
 
Share this answer
 
C++/CLI and C# are a lot easier to use for GUI development
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900