Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, Im beginner in Visual C++. Im now discovering with Visual Studio 2008. I want to know how can i remove a member variable after adding it to a control. I did this in Visual C++ 6.0 but i cant do same thing in Visual C++ 2008. Please help me.
Thanks very much!
Posted

You need to remove it from the code itself. Just remove the member variable from the header file for the control. Compile and the build errors that result will help you find all the other places where the references to it need to be removed.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-May-11 16:13pm    
This is correct, my 5.
I have my special opinion on the matter, please see my answer.
--SA
buiducthang 20-May-11 7:06am    
Well. I think that is the unique solution in Visual Studio 2008. I tried with header file and that is OK. Thanks very much!
Marcus is right — this is all in code.

If you're a beginner, stop working with Designer and concentrate on code until you are very comfortable. Don't develop malpractices and delusions. When you go back to Designer, don't overuse it, prefer using it just for layout.

—SA
 
Share this answer
 
v2
Comments
Albert Holguin 18-May-11 17:47pm    
agreed... i have to deal with people who don't know what the IDE does for them and its not very fun
Sergey Alexandrovich Kryukov 18-May-11 19:28pm    
Thank you, Albert.
Sorry for you, but I had to deal with people who never knew that they can go out of IDE and run compiled executable; they thought the customers need the same IDE -- those are even worse. Didn't you hear from that kind of people here at CodeProject?
--SA
Albert Holguin 19-May-11 10:37am    
I guess at CP we hear all sorts of crazy things... :)
Sergey Alexandrovich Kryukov 20-May-11 15:25pm    
He-he, right :-)
--SA

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