Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with DT_WORDBREAK Pin
QuickDeveloper11-Apr-06 4:33
QuickDeveloper11-Apr-06 4:33 
AnswerRe: Problem with DT_WORDBREAK Pin
-Dy11-Apr-06 5:35
-Dy11-Apr-06 5:35 
QuestionRead in, write out RTF Pin
DanYELL11-Apr-06 4:17
DanYELL11-Apr-06 4:17 
AnswerRe: Read in, write out RTF Pin
David Crow11-Apr-06 5:09
David Crow11-Apr-06 5:09 
AnswerRe: Read in, write out RTF Pin
Trollslayer11-Apr-06 5:21
mentorTrollslayer11-Apr-06 5:21 
GeneralRe: Read in, write out RTF Pin
DanYELL11-Apr-06 12:59
DanYELL11-Apr-06 12:59 
GeneralRe: Read in, write out RTF Pin
DanYELL11-Apr-06 13:37
DanYELL11-Apr-06 13:37 
GeneralRe: Read in, write out RTF Pin
dabs11-Apr-06 14:15
dabs11-Apr-06 14:15 
Probably something like:

CString strFileContents;
int nLen = cfFile.GetLength( );
LPTSTR pszBuffer = strFileContents.GetBufferSetLength( nLen + 1 );
cfFile.Read( pszBuffer, nLen );
strFileContents.ReleaseBuffer( );

Note: I didn't run this through a compiler, expect bugs Smile | :)



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralRe: Read in, write out RTF Pin
Trollslayer11-Apr-06 22:51
mentorTrollslayer11-Apr-06 22:51 
QuestionIdea about => fun(CString str, ...) Pin
Andy Rama11-Apr-06 3:43
Andy Rama11-Apr-06 3:43 
AnswerRe: Idea about => fun(CString str, ...) Pin
toxcct11-Apr-06 3:49
toxcct11-Apr-06 3:49 
AnswerRe: Idea about => fun(CString str, ...) Pin
David Crow11-Apr-06 3:52
David Crow11-Apr-06 3:52 
GeneralRe: Idea about => fun(CString str, ...) Pin
Andy Rama11-Apr-06 22:31
Andy Rama11-Apr-06 22:31 
QuestionHow to Impersonate a Remote Machine. Pin
kiran janaswamy11-Apr-06 3:39
kiran janaswamy11-Apr-06 3:39 
QuestionRe: How to Impersonate a Remote Machine. Pin
David Crow11-Apr-06 3:54
David Crow11-Apr-06 3:54 
QuestionCEdit -> show messages in all languages. Pin
Suyash11-Apr-06 3:30
Suyash11-Apr-06 3:30 
AnswerRe: CEdit -> show messages in all languages. Pin
jayart11-Apr-06 6:06
jayart11-Apr-06 6:06 
GeneralRe: CEdit -> show messages in all languages. Pin
Suyash12-Apr-06 1:13
Suyash12-Apr-06 1:13 
Questiondisable/grey out date time picker Pin
viperlogic11-Apr-06 3:23
viperlogic11-Apr-06 3:23 
AnswerRe: disable/grey out date time picker Pin
-Dy11-Apr-06 3:38
-Dy11-Apr-06 3:38 
AnswerRe: disable/grey out date time picker Pin
RickyC11-Apr-06 3:38
RickyC11-Apr-06 3:38 
GeneralRe: disable/grey out date time picker Pin
viperlogic11-Apr-06 4:20
viperlogic11-Apr-06 4:20 
GeneralRe: disable/grey out date time picker Pin
toxcct11-Apr-06 4:26
toxcct11-Apr-06 4:26 
Questionfolder with icons Pin
_tasleem11-Apr-06 3:17
_tasleem11-Apr-06 3:17 
QuestionRe: folder with icons Pin
David Crow11-Apr-06 3:19
David Crow11-Apr-06 3:19 

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.