--
[ Picked text/plain from multipart/alternative ]
I'm attempting to use the Asynchronous Socket class available in windows,
however when I attempt to use this, I get a duplicate template class with
CThreadLocal.  This class is created in threadtools.h which is linked from
cbase.h.  If I want to use the Async Socket header (afxsocket.h) one of its
headers goes to (afxtls_.h) which also has the CThreadLocal template class.
The problem is "cbase.h" will always have to be called first, so theres no
way to avoid this duplication!

There are defines to avoid duplicating it in threadtools.h, however since
this is created through the precompiled header file cbase.h, there is no way
for those defines to go into effect.  I tried renaming valve's CThreadLocal
and also tried creating the #define __AFXTLS_H__ before "cbase.h" in my .cpp
file.  Both give me several linking errors.  Is this an unforeseen bug?  Or
is there a way around this?
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to