Click here to Skip to main content
15,918,617 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: I don't get to read the file lines Pin
David Crow5-Oct-05 6:36
David Crow5-Oct-05 6:36 
Question[Message Deleted] Pin
ddmcr5-Oct-05 5:03
ddmcr5-Oct-05 5:03 
AnswerRe: char [] problem Pin
Chris Losinger5-Oct-05 5:10
professionalChris Losinger5-Oct-05 5:10 
AnswerRe: char [] problem Pin
toxcct5-Oct-05 5:20
toxcct5-Oct-05 5:20 
QuestionQuestion about CString Pin
LaHaHa5-Oct-05 4:29
LaHaHa5-Oct-05 4:29 
AnswerRe: Question about CString Pin
Chris Losinger5-Oct-05 4:36
professionalChris Losinger5-Oct-05 4:36 
JokeRe: Question about CString Pin
toxcct5-Oct-05 4:51
toxcct5-Oct-05 4:51 
AnswerRe: Question about CString Pin
Bob Stanneveld5-Oct-05 6:15
Bob Stanneveld5-Oct-05 6:15 
Hello,

CString uses 8 bits! A byte is 8 bits and CString uses no less... If you want to specify values other than the visible characters, you should call GetBufferSetLength(new length). This will retrieve a pointer to the internal character buffer. Manipulate it as required (using code>unsigned char's and a lot of casting. Then call ReleaseBuffer() and make sure that there are no null terminators in the buffer, but only one on the end.

This is a dirty hack that you should not use, but use a BYTE buffer or
unsigned char<code> buffer instead!<br />
<br />
Hope this helps :) <br />
<br />
Behind every great black man...<br />
            ... is the police. - Conspiracy brother<br />
<br />
<br />
<a href="http://www.codeproject.com/script/profile/whos_who.asp?id=418947&id=418947&df=100&forumid=27215&exp=6&select=1050632">Blog</a>[<a href="http://www.codeproject.com/script/profile/whos_who.asp?id=418947&id=418947&df=100&forumid=27215&exp=6&select=1050632" target="_BLANK">^</a>]

GeneralRe: Question about CString Pin
LaHaHa5-Oct-05 12:21
LaHaHa5-Oct-05 12:21 
GeneralRe: Question about CString Pin
Roger Stoltz5-Oct-05 21:04
Roger Stoltz5-Oct-05 21:04 
GeneralRe: Question about CString Pin
LaHaHa5-Oct-05 22:54
LaHaHa5-Oct-05 22:54 
GeneralRe: Question about CString Pin
Roger Stoltz5-Oct-05 23:32
Roger Stoltz5-Oct-05 23:32 
GeneralRe: Question about CString Pin
LaHaHa6-Oct-05 1:01
LaHaHa6-Oct-05 1:01 
GeneralRe: Question about CString Pin
Roger Stoltz6-Oct-05 1:26
Roger Stoltz6-Oct-05 1:26 
GeneralRe: Question about CString Pin
LaHaHa6-Oct-05 16:17
LaHaHa6-Oct-05 16:17 
QuestionException 0xE06D7363 Problem? Pin
bosfan5-Oct-05 4:26
bosfan5-Oct-05 4:26 
AnswerRe: Exception 0xE06D7363 Problem? Pin
Bob Stanneveld5-Oct-05 6:17
Bob Stanneveld5-Oct-05 6:17 
GeneralRe: Exception 0xE06D7363 Problem? Pin
bosfan5-Oct-05 21:17
bosfan5-Oct-05 21:17 
QuestionGerman Umlaute in .tlh File Pin
MarcoNedwig5-Oct-05 3:40
MarcoNedwig5-Oct-05 3:40 
QuestionEditing Standard/Object Libraries... Pin
Milby0075-Oct-05 3:13
Milby0075-Oct-05 3:13 
AnswerRe: Editing Standard/Object Libraries... Pin
Bartosz Bien5-Oct-05 3:24
Bartosz Bien5-Oct-05 3:24 
GeneralRe: Editing Standard/Object Libraries... Pin
Milby00711-Oct-05 0:04
Milby00711-Oct-05 0:04 
GeneralRe: Editing Standard/Object Libraries... Pin
Bartosz Bien12-Oct-05 9:48
Bartosz Bien12-Oct-05 9:48 
GeneralRe: Editing Standard/Object Libraries... Pin
Milby00718-Oct-05 12:02
Milby00718-Oct-05 12:02 
Questionconversion from ini to xml Pin
swaapu5-Oct-05 3:04
swaapu5-Oct-05 3:04 

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.