Click here to Skip to main content
15,914,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2022: '65279' : too big for character Pin
Saurabh.Garg3-Nov-08 15:29
Saurabh.Garg3-Nov-08 15:29 
GeneralRe: error C2022: '65279' : too big for character Pin
Bram van Kampen4-Nov-08 11:51
Bram van Kampen4-Nov-08 11:51 
Questionstange behavior with OpenGL in VC++.Net Pin
smorel23-Nov-08 12:34
smorel23-Nov-08 12:34 
Questionndis set from visual c++ Pin
ggfernandez3-Nov-08 8:48
ggfernandez3-Nov-08 8:48 
Questionimage acquition Pin
jjvr3-Nov-08 8:22
jjvr3-Nov-08 8:22 
AnswerRe: image acquition Pin
led mike3-Nov-08 10:35
led mike3-Nov-08 10:35 
GeneralRe: image acquition Pin
Bram van Kampen3-Nov-08 15:30
Bram van Kampen3-Nov-08 15:30 
QuestionConverting from CString to char (or simple text) Pin
shpid3r3-Nov-08 7:35
shpid3r3-Nov-08 7:35 
Hello again!
Using MFC, I am trying to implement an EDIT BOX and to print the content of it into a file.

I have associated a variable to the EDIT BOX, and that is CString varName.
When writing this variable into a log file, LOG.Write (varName, <not yet sure what length> ); , i get the result:
- for input: Shpid3r => S<square>h<square>p<square>i<square>d<square>3<square>r<square>.

I think that this is because using UNICODE character set, and every character in the CString is using 2 bytes, whilst using it into the Write() method, converts the string byte-by-byte.

Setting to use ANSI, creates an error (not finding a header file)... anyway my application should support unicode character set, even if logging will not meet unicode characters.
How should I do in order to get a proper logging?
Thank you!
AnswerRe: Converting from CString to char (or simple text) Pin
CPallini3-Nov-08 7:57
mveCPallini3-Nov-08 7:57 
Questionsorting Pin
Member 41579873-Nov-08 6:30
Member 41579873-Nov-08 6:30 
QuestionRe: sorting Pin
David Crow3-Nov-08 6:41
David Crow3-Nov-08 6:41 
AnswerRe: sorting Pin
Bram van Kampen3-Nov-08 15:35
Bram van Kampen3-Nov-08 15:35 
AnswerRe: sorting Pin
Ahmed Charfeddine3-Nov-08 21:55
Ahmed Charfeddine3-Nov-08 21:55 
Questionglobal new operator issue Pin
Abyss3-Nov-08 5:52
Abyss3-Nov-08 5:52 
AnswerRe: global new operator issue Pin
CPallini3-Nov-08 6:46
mveCPallini3-Nov-08 6:46 
GeneralRe: global new operator issue Pin
Abyss3-Nov-08 7:11
Abyss3-Nov-08 7:11 
GeneralRe: global new operator issue Pin
Mark Salsbery3-Nov-08 9:05
Mark Salsbery3-Nov-08 9:05 
GeneralRe: global new operator issue Pin
Bram van Kampen3-Nov-08 15:37
Bram van Kampen3-Nov-08 15:37 
GeneralRe: global new operator issue Pin
Abyss3-Nov-08 18:49
Abyss3-Nov-08 18:49 
GeneralRe: global new operator issue Pin
Bram van Kampen4-Nov-08 11:05
Bram van Kampen4-Nov-08 11:05 
QuestionFunction arguments and call description Pin
Ahmed Charfeddine3-Nov-08 4:48
Ahmed Charfeddine3-Nov-08 4:48 
AnswerRe: Function arguments and call description Pin
Cedric Moonen3-Nov-08 5:10
Cedric Moonen3-Nov-08 5:10 
GeneralRe: Function arguments and call description Pin
Ahmed Charfeddine3-Nov-08 21:34
Ahmed Charfeddine3-Nov-08 21:34 
GeneralRe: Function arguments and call description Pin
Cedric Moonen4-Nov-08 1:20
Cedric Moonen4-Nov-08 1:20 
AnswerRe: Function arguments and call description [modified] Pin
Bram van Kampen3-Nov-08 15:53
Bram van Kampen3-Nov-08 15:53 

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.