Group:  Microsoft Access » microsoft.public.access.dataaccess.pages
Thread: RFX_TEXT Unicode problem

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

RFX_TEXT Unicode problem
"Eric Chen" <eric9chen[ at ]iei.com.tw> 07.07.2006 09:45:29
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?


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net