|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Hi, I have a serious problem when using RFX_TEXT to write Unicode string into ..mdb file, the value will be trucated some characters in .mdb file.
DB driver : ODBC Language tool: VC6
Here is my code.
CString m_file_name; CString m_file_local_path;
void CDefaultLayout::DoFieldExchange(CFieldExchange* pFX) { //{{AFX_FIELD_MAP(CDefaultLayout) pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[file_name]"), m_file_name); // m_file_name is "¤¤¤åªº¦r«¬.jpg" RFX_Text(pFX, _T("[file_local_path]"), m_file_local_path); // m_file_local_path "D:\¤¤¤åªº¦r«¬.jpg" //}}AFX_FIELD_MAP }
After checked mdb file, "[file_name]" field will be "¤¤¤åªº¦r" "[file_local_path]" field will be "D:\¤¤¤åªº¦r"
Can someone to help me how to correct this issue?
|
|
|