alainpeniche - 2005-08-03

Hello all
I'm a newbie, and I appreciate much dev-C++.
Excuse my very bad English, I'm french and better in cooking than in learning languages.

How can I use UNICODE_STRING returned by some of the win32 functions.
This code makes an error:

include <string>

include <iostream>

int main()
{
std::wstring s = L"Chane unicode";
wchar_t c = s[ 0 ]; // c = L'C'
std::wcout << s;
}
ERRORS:
Illegal byte sequence
8 F:\Dev-Cpp\projets\api native\wstring.cpp wcout' is not a member ofstd'

How can I use the wstring UNICODE_STRING and wcout with dev-C++ ?
Thank you very much