Home » Developer & Programmer » Precompilers, OCI & OCCI » Connect in Unicode mode
Connect in Unicode mode [message #199665] Wed, 25 October 2006 12:25
Messages: 1
Registered: October 2006
Junior Member
I am implementing a project where the API is to communicate with an Oracle database containing UTF16.

I have read the documentation, which states that the intention to use UTF16 should be set when calling createEnvironment, which I also successfully have managed to do. However, thereafter when I'm calling createConnection to connect to the database am should be able to call a Unicode version of createConnection, allowing me to send every parameter as L"". Though, when I do this I get an error saying it cannot convert wchar_t to std::string, indicating I can't access the unicode version of createConnection.

I am using VS 2005, have downloaded the debug versions of occi for VS 2005, included oraocci10d.lib in the project and added to the PATH variable the path to the folder where oraocci10d.dll is. Furthermore I can successfully connect with just char, but not wchar_t.
Previous Topic: Get default values from OCI
Next Topic: OCCI connect DB, but TNS error
Goto Forum:

Current Time: Mon Feb 27 03:08:19 CST 2017

Total time taken to generate the page: 0.08639 seconds