www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - Is this a bug?

reply "David Wang" <ww jzinfo.com> writes:
I have try use pantheios in my project,which use msvc8.
There are some strange errors when compile
file that include "pantheios.hpp" at the line use "std::min" , finally i 
find it is because there is a Macro min,max defined in "windows.h" ,oh,so 
stupid!  I have to add a "NOMINMAX" to solve the problem.

the other problem is about UNICODE, my project have defined use UNICODE, 
there is function in ..../time.hpp, c_ptr_str(t,bool) , cann't find a 
conversion to
char, because there only exist a wchar version.  When i undefine UNICODE,all 
is right. is it a bug?
Oct 28 2006
parent reply "Matthew" <matthew hat.stlsoft.dot.org> writes:
"David Wang" <ww jzinfo.com> wrote in message
news:ei1cls$oub$1 digitaldaemon.com...
 I have try use pantheios in my project,which use msvc8.
 There are some strange errors when compile
 file that include "pantheios.hpp" at the line use "std::min" , finally i
 find it is because there is a Macro min,max defined in "windows.h" ,oh,so
 stupid!  I have to add a "NOMINMAX" to solve the problem.
Can you let me know what file/line this is in, and I may be able to track it down and eliminate it so that you don't need to #define NOMINMAX? Maybe ...
 the other problem is about UNICODE, my project have defined use UNICODE,
 there is function in ..../time.hpp, c_ptr_str(t,bool) , cann't find a
 conversion to
 char, because there only exist a wchar version.  When i undefine
UNICODE,all
 is right. is it a bug?
Could well be. Can you give me file/line? I'll try it myself with a UNICODE project in VC8 while I await your feedback. Matthew
Oct 28 2006
parent "Matthew" <matthew hat.stlsoft.dot.org> writes:
 the other problem is about UNICODE, my project have defined use UNICODE,
 there is function in ..../time.hpp, c_ptr_str(t,bool) , cann't find a
 conversion to
 char, because there only exist a wchar version.  When i undefine
UNICODE,all
 is right. is it a bug?
Could well be. Can you give me file/line? I'll try it myself with a
UNICODE
 project in VC8 while I await your feedback.
I found it. Thanks! I'll release a new STLSoft beta shortly.
Oct 28 2006