Sign in to follow this  
chrisliando

Problems with Visual Studio 2008

Recommended Posts

chrisliando    100
Hi, I am developing with Visual C++ MFC, the IDE I used is the Visual Studio 2008. My problem is: Compared to Visual Studio 6, when I add Control Variable to a Control, let say IDC_Edit which the control variable I named m_Edit1. Why does the code for DoDataExchange ( RED colored on attached code below ) won't automatically created? so that I had to create it myself.. What make question on my mind is on Visual Studio 6, it is automatically created. Below codes taken from Visual Studio 6. void CSample1Dlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSample1Dlg) DDX_Text(pDX, IDC_EDIT1, m_Edit1); //}}AFX_DATA_MAP } How to solve this problem since everyone including me obviously cannot memorize all the DDX command / syntax on their mind..and it is very possible that if someone coding, they sometimes forgot to add that command since they used to think that it will be created automatically. If this happen to a large scale application, it will be difficult to trace why a lot of process / flow does not work as the logic control. Or is there any customization on settings or menu to make it automatically create that line? Thank you very much.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this