Message 1 of 5

Not applicable
11-14-2012
10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone help with making this function call? I am using:
typedef std::basic_string<TCHAR> tstring;
//in dialog class...
tstring m_strAngle;
CAcUiAngleEdit m_ctrlAngleEdit;
// stuff to modify m_strAngle here...
LPCTSTR buf = m_strAngle.c_str();
m_ctrlAngleEdit.SetWindowTextW(buf); //crashes here.
Also, are the _T() macros the thing to use with AutoCAD, or are they outdated/unnecessary?
I'm attempting to use the acuisample_dg in the MFC samples. (If anyone from AutoDesk sees this, updated samples that are built using the current ARXwizard and compile would be much easier to learn from!)
Thanks for any help,
Ralph Gaston
Solved! Go to Solution.