Hi,
according to http://msdn2.microsoft.com/library/883tf19a(en-us,vs.80).aspx or msdn.microsoft.com/library/ en-us/vccore98/HTML/_crt__setmbcp.asp
it should not get errored out for _MB_CP_ANSI which is actually defined in mbctype.h the value's are
/* _setmbcp parameter defines */ #define _MB_CP_SBCS 0 #define _MB_CP_OEM -2 #define _MB_CP_ANSI -3 #define _MB_CP_LOCALE -4
so it should not get erroed out for code page of -3
and also i think that we should add mbctype.h to the include. If u agree i would like to write it or anyone can do it.
Thanks, Vijay