|
-
April 21st, 1999, 11:58 AM
#1
help with CString
I copied code which creates a masked edit control. To return the time in a string rather than a COleDateTime object, the author says to use
CString string = m_editCtrl.GetTimeStr();
When I then try the following code,
CClientDC cDC(this);
cDC.TextOut(10,10, string);
my program crashes at TextOut statement. What am I doing wrong? How can I convert this CString into just a char string that I can then print?
Any response any one can give me will be greatly appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|