Advertisement

09.19.2007 at 06:20PM PDT, ID: 22840338
[x]
Attachment Details

Moving from WTL 7.0 to WTL 8.0

Asked by mlazear in Windows ATL / WTL / COM Programming

Tags: wtl, member, error

I have an application that uses WTL 7.0 and I'm upgrading it to WTL 8.0.   The code that used to compile fine now gives we the following error:
Error      1      error C2039: 'CString' : is not a member of 'WTL'

I'm guessing that Microsoft made some changes to what headers need to be included or in what order.  
These errors are showing up in atlmisc.h which is part of the header set for WTL

Here is an example line of code from atlmisc.h that gets this error:
      BOOL GetFromList(int nItemID, _CSTRING_NS::CString& strDocName)

Has anyone here moved an application from WTL 7.0 to 8.0 and run into such a problem?

Thanks,
Mike
Start Free Trial
 
Loading Advertisement...
 
[+][-]09.21.2007 at 07:48AM PDT, ID: 19936041

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.21.2007 at 04:28PM PDT, ID: 19939829

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.22.2007 at 01:15PM PDT, ID: 19942500

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows ATL / WTL / COM Programming
Tags: wtl, member, error
Sign Up Now!
Solution Provided By: stammencm
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628