Re[2]: ATL CString vs. WTL CString
"Richard B." <dj_deipotent-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
I've also just run into the same problem with using WTL CString, and
solved the problem by following Jim's advice.
Given the problems that can occur with using WTL's CString, is there
any point in using it rather than always using ATL's CString ?
> Yes, that's what I do, as well as using <atltypes.h> for CRect etc.
I'm wondering why you prefer to use <atltypes.h> for CRect
etc., as opposed to using WTL's <atlmisc.h> versions ?
--
Best regards,
Richard B.
Thursday, February 19, 2009, 2:45:54 PM, you wrote:
> robert679078 wrote:
>> I am using MS Visual Studio 2008 and have been using the WTL CString
>> class defined in <atlmisc.h>. However, this is causing me problems -
>> for example, the base ATL::CWindowImpl::GetWindowText function doesn't
>> support the WTL CString.
>>
>> Is it therefore better to use the ATL::CString defined in <atlstr.h>?
> Yes, that's what I do, as well as using <atltypes.h> for CRect etc.
>> Will this cause any problems?
> Not really - you just have to #define _WTL_NO_CSTRING before
> including <atlmisc.h>, or don't include it at all.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/