What is difference between A2W and MutiByteToWideChar?
-
Well, there are several functions which converts MBCS to WCHAR. Among them, I often used A2W and MultiByteToWideChar. But I don't know the difference and which is the best. Often, A2W is very simple to use but when I use it in the scope of while or thread, It often occurred stack over flow errors. What's wrong? Could anybody notice me which function is the best and which A2W occure Stack Over flow error? Thank you. :)
-
Well, there are several functions which converts MBCS to WCHAR. Among them, I often used A2W and MultiByteToWideChar. But I don't know the difference and which is the best. Often, A2W is very simple to use but when I use it in the scope of while or thread, It often occurred stack over flow errors. What's wrong? Could anybody notice me which function is the best and which A2W occure Stack Over flow error? Thank you. :)
-
See http://msdn.microsoft.com/en-us/library/vstudio/805c56f8(v=vs.100).aspx[^].
Veni, vidi, abiit domum