Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTabCtrl in a Dialog Bar Pin
Ravi Bhavnani24-Oct-02 7:02
professionalRavi Bhavnani24-Oct-02 7:02 
QuestionHow to get bytes sent and bytes receive with IP Helper function Pin
Fang Jing22-Oct-02 21:59
Fang Jing22-Oct-02 21:59 
GeneralOT: cheers to codeproject Pin
Anonymous22-Oct-02 21:35
Anonymous22-Oct-02 21:35 
GeneralRe: OT: cheers to codeproject Pin
Roger Allen23-Oct-02 0:34
Roger Allen23-Oct-02 0:34 
QuestionA question after looking at the "FTPWander",how can it support resuming interrupted transmission ? Pin
nothingremained22-Oct-02 21:13
nothingremained22-Oct-02 21:13 
Generalprevent the user to use some keystrokes using a service, I'v done this by this way, but it works only in some machines... Pin
Joan M22-Oct-02 20:52
professionalJoan M22-Oct-02 20:52 
GeneralMDI tutorial/links Pin
Mandalay22-Oct-02 20:13
Mandalay22-Oct-02 20:13 
GeneralUNICODE problem! Pin
Daniel Strigl22-Oct-02 20:05
Daniel Strigl22-Oct-02 20:05 
I use the T2CA() macro to convert a string (UNICODE or non UNICODE - the code should work with both systems) to a char* string (each character = 1 byte) to save it to a file.

The code looks like:

...
USES_CONVERSION; // Need for T2CA() macro

// Write the string to the file

DWORD dwWrittenBytes;

if (!WriteFile(m_hFile, T2CA((LPCTSTR) str), str.GetLength(), &dwWrittenBytes, NULL) || 
    dwWrittenBytes != (DWORD) str.GetLength())
{
...
}
...


The problem is that when I have a string like "Büro" (a german word), the T2CA() macro removes the "ü" in the string and saves the string "Bro" to the file!

So, how can I convert a string (UNICODE / non UNICODE) to a char* without removing some characters (like ü,ö,...)?


Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralRe: UNICODE problem! [corrected] Pin
Joaquín M López Muñoz22-Oct-02 21:23
Joaquín M López Muñoz22-Oct-02 21:23 
GeneralRe: UNICODE problem! [corrected] Pin
Daniel Strigl23-Oct-02 3:27
Daniel Strigl23-Oct-02 3:27 
GeneralRe: UNICODE problem! Pin
Maximilien23-Oct-02 3:07
Maximilien23-Oct-02 3:07 
GeneralRe: UNICODE problem! Pin
Daniel Strigl23-Oct-02 3:19
Daniel Strigl23-Oct-02 3:19 
Question_ConnectionPtr pCon ????? Pin
Anonymous22-Oct-02 19:23
Anonymous22-Oct-02 19:23 
AnswerRe: _ConnectionPtr pCon ????? Pin
Nish Nishant22-Oct-02 19:29
sitebuilderNish Nishant22-Oct-02 19:29 
GeneralRe: _ConnectionPtr pCon ????? Pin
Anonymous25-Oct-02 19:59
Anonymous25-Oct-02 19:59 
Generallost unicode... Pin
Mel Feik22-Oct-02 18:28
Mel Feik22-Oct-02 18:28 
GeneralRe: lost unicode... Pin
jmkhael23-Oct-02 2:04
jmkhael23-Oct-02 2:04 
GeneralRe: lost unicode... Still Pin
Mel Feik23-Oct-02 3:17
Mel Feik23-Oct-02 3:17 
GeneralView Print Preview Pin
act_x22-Oct-02 17:59
act_x22-Oct-02 17:59 
GeneralRe: View Print Preview Pin
Roger Allen23-Oct-02 1:07
Roger Allen23-Oct-02 1:07 
QuestionHow to change menu's font ? Pin
Nguyen Huynh Hung22-Oct-02 17:52
Nguyen Huynh Hung22-Oct-02 17:52 
AnswerRe: How to change menu's font ? Pin
José Luis Sogorb23-Oct-02 7:11
José Luis Sogorb23-Oct-02 7:11 
GeneralHelp! ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
work_to_live22-Oct-02 15:24
work_to_live22-Oct-02 15:24 
GeneralRe: ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
Roger Allen23-Oct-02 1:10
Roger Allen23-Oct-02 1:10 
GeneralRe: Help! ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
Jonathan Craig23-Oct-02 6:29
Jonathan Craig23-Oct-02 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.