Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / General Programming / Writing WCHAR to DB Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
shvalb

February 25, 2005, 08:15 AM

Hi.

At the moment I'm writing to the DB using simple SQL statement, like:

("INSERT INTO %s (STYLENAME, LANGUEGE, IVRPOSITION) VALUES ('%s','%s', %u)", m_tableName, m_wcName, m_languege, currentIvrPosition+1);

but now I need to write to the DB using unicode, meaning, instead of simple char* that I used to write to the DB without a problem, I converted it to WCHAR and I need to write it to the DB (becuase of languages problems) how do I do that ?? is there a specific function ??

Thanks.

 
Samuel Hornus

February 25, 2005, 08:18 AM

INSERT "THAT'S CRAZY" INTO m_tableName WITH (WCHAR) ORDER ASC

 
shvalb

February 25, 2005, 08:26 AM

I didn't get it...

That's not the valid format of INSERT statement!

can you please be more specific.

Thanks.

support I have the data member m_wcName which is a WCHAR* and my table name is users_table.
What will be the SQL statement ??

Thanks

 
This thread contains 3 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.