Possible Duplicate:
How do you convert LPCWSTR to const char *?
I have a function that gets a LPCWSTR string for win32 api usage. Now I have a function that sends data in ASCII to the IRC server. So now I need to convert it to ASCII, I haven't found any solutions, I only found ways to convert ASCII to UNICODE.