Problem with VC6 and WTL 7.5

12 views
Skip to first unread message

Pietro Bianchessi

unread,
Oct 26, 2004, 9:04:16 AM10/26/04
to
Hi,
I have just installed WTL 7.5 under VC6.

In the StdAfx.h file of my project, I fixed the ATL namespace
problem as suggested in readme file with these lines:

#define ATL ATLFIX
#include <atlapp.h>
#undef ATL
namespace ATL = ::ATLFIX;

Unfortunaltely, compiling the project I still have the following error
compiling "atlapp.h"

LINE: ATL::CSimpleArray<CMessageFilter*> m_aMsgFilter;
ERROR: 'ATLFIX' : is not a class or namespace name

Please, can anyone tell me what I can do to fix it?

Thank you very much,
Pietro


Igor Tandetnik

unread,
Oct 26, 2004, 12:49:23 PM10/26/04
to
"Pietro Bianchessi" <pbian...@tiscali.it> wrote in message
news:%23zf5Ox1...@TK2MSFTNGP15.phx.gbl

> I have just installed WTL 7.5 under VC6.
>
> In the StdAfx.h file of my project, I fixed the ATL namespace
> problem as suggested in readme file with these lines:
>
> #define ATL ATLFIX
> #include <atlapp.h>
> #undef ATL
> namespace ATL = ::ATLFIX;
>
> Unfortunaltely, compiling the project I still have the following error
> compiling "atlapp.h"
>
> LINE: ATL::CSimpleArray<CMessageFilter*> m_aMsgFilter;
> ERROR: 'ATLFIX' : is not a class or namespace name

It looks like a typo in Readme. I believe you should include atlbase.h
this way, not atlapp.h . Try it, see if it helps.
--
With best wishes,
Igor Tandetnik

"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage


Pietro Bianchessi

unread,
Oct 26, 2004, 1:10:59 PM10/26/04
to
Hi Igor,
thank you very much for your help. It works perfectly!

Best regards,
Pietro


"Igor Tandetnik" <itand...@mvps.org> ha scritto nel messaggio
news:%236eD1u3...@TK2MSFTNGP15.phx.gbl...

Reply all
Reply to author
Forward
0 new messages