Reply

Retrieve numerical values from edit boxes

[ Edited ]

 

Hi,

I downloaded Solid Edge Addin Wizard for Visual C++ 2005 and it works fine so far.   I can create ATL dialog boxes and add some buttons. However, when I add an edit box and want to get the user input value, UpdateData(TRUE) doesn't work.   The error message shows UpdateData is an undeclared identifier.  I found that UpdateData is in afxwin.h.  I added afxwin.h into stdafx.h but got many other error messages.  Is there a way to use UpdateData without problems or is there any other way to retrieve data from edit boxes without using UpdateData?

Thanks in advance.

shihhsi

 

Posted by: Shih-Hsi Tong
Post date: 8/22/2007 7:25:20 PM

2 REPLIES

RE: Retrieve numerical values from edit boxes

[ Edited ]

Hi shihhsi,

 

Yeah, my templates are ATL only so including the MFC include afxwin.h won't work. This does raise a good point in that I need to have available MFC tempaltes, which I can certainly do with some time. MFC makes working with dialogs much easier.

 

You can still do what you want with ATL. My 1st though would be to user GetWindowText() on the edit box. You should get what you need with that.

 

Posted by: Jason Newell
Post date: 8/30/2007 12:09:58 PM

RE: Retrieve numerical values from edit boxes

[ Edited ]

 

Hi, Jason:

Thanks so much for your reply.

Shih-Hsi

 

Posted by: Shih-Hsi Tong
Post date: 9/5/2007 8:00:02 PM