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

C / C++ / MFC

 
GeneralRe: Windows groups and languages Pin
ramskar4-Nov-04 23:32
ramskar4-Nov-04 23:32 
GeneralRe: Windows groups and languages Pin
ramskar8-Nov-04 2:00
ramskar8-Nov-04 2:00 
QuestionGet ID of a Dialog? Pin
Anonymous3-Nov-04 20:45
Anonymous3-Nov-04 20:45 
AnswerRe: Get ID of a Dialog? Pin
ThatsAlok3-Nov-04 22:06
ThatsAlok3-Nov-04 22:06 
GeneralUpdating SDK Pin
cberam3-Nov-04 20:05
cberam3-Nov-04 20:05 
GeneralRe: Updating SDK Pin
Antony M Kancidrowski4-Nov-04 0:18
Antony M Kancidrowski4-Nov-04 0:18 
GeneralRe: Updating SDK Pin
David Crow4-Nov-04 3:49
David Crow4-Nov-04 3:49 
GeneralHelp me plase || CRichEdit Pin
TooLeeDiN3-Nov-04 17:11
TooLeeDiN3-Nov-04 17:11 
DWORD __stdcall MEditStreamOutCallback(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)
{
CString sThisWrite;
sThisWrite.GetBufferSetLength(cb);

CString *psBuffer = (CString *)dwCookie;
for (int i=0;i<cb;i++) {
="" sthiswrite.setat(i,*(pbbuff+i));
="" }
="" *psbuffer="" +="sThisWrite;
" *pcb="sThisWrite.GetLength();
" sthiswrite.releasebuffer();
="" return="" 0;
}
<u="">I use above function to get string form buffer but i have problem.
Assume the string on editor is "##123456789##" and i test MEditStreamOutCallback function with below function

void CRichEgView::OnReadout()
{
CString sReadText; to
EDITSTREAM es;
es.dwCookie = (DWORD)&sReadText; es.pfnCallback = MEditStreamOutCallback;
GetRichEditCtrl().StreamOut(SF_RTF,es); MessageBox(sReadText.Mid(0,500));
}
The string below is the result but i need noly "##123456789## string,please suggest
"{\rtf1\ansi\ansicpg874\deff0\deflang1054{\fonttbl{\f0\fswiss\fprq2\fcharset222 System;}}
\viewkind4\uc1\pard\lang1033\b\f0\fs20 ##123456789##\lang1054\par
}
"}
GeneralRe: Help me plase || CRichEdit Pin
Ryan Binns3-Nov-04 18:23
Ryan Binns3-Nov-04 18:23 
GeneralRe: Help me plase || CRichEdit Pin
TooLeeDiN3-Nov-04 18:33
TooLeeDiN3-Nov-04 18:33 
Generalaccessing win Ce database Pin
Logan from Singapore3-Nov-04 16:17
Logan from Singapore3-Nov-04 16:17 
GeneralRe: accessing win Ce database Pin
Cedric Moonen3-Nov-04 20:23
Cedric Moonen3-Nov-04 20:23 
GeneralRe: accessing win Ce database Pin
Logan from Singapore3-Nov-04 20:31
Logan from Singapore3-Nov-04 20:31 
GeneralWMI / SNMP / C++ Pin
Peter Weyzen3-Nov-04 13:17
Peter Weyzen3-Nov-04 13:17 
GeneralRe: WMI / SNMP / C++ Pin
leandrobecker4-Nov-04 3:02
leandrobecker4-Nov-04 3:02 
Generalformatting input Pin
An663-Nov-04 11:56
sussAn663-Nov-04 11:56 
GeneralRe: formatting input Pin
Peter Weyzen3-Nov-04 13:34
Peter Weyzen3-Nov-04 13:34 
QuestionOverride lst2 listbox actions in explorer type open file dialog? Pin
Member 14583203-Nov-04 10:40
Member 14583203-Nov-04 10:40 
Generalcustomizing OPENFILENAME - &quot;new&quot; look Pin
peterchen3-Nov-04 10:27
peterchen3-Nov-04 10:27 
GeneralRe: customizing OPENFILENAME - &quot;new&quot; look Pin
Ryan Binns3-Nov-04 18:43
Ryan Binns3-Nov-04 18:43 
GeneralRe: customizing OPENFILENAME - &quot;new&quot; look Pin
David Crow4-Nov-04 3:56
David Crow4-Nov-04 3:56 
GeneralUnion question Pin
Steve Messer3-Nov-04 9:18
Steve Messer3-Nov-04 9:18 
GeneralRe: Union question Pin
David Crow3-Nov-04 9:38
David Crow3-Nov-04 9:38 
GeneralRe: Union question Pin
Steve Messer3-Nov-04 9:45
Steve Messer3-Nov-04 9:45 
GeneralRe: Union question Pin
Henry miller3-Nov-04 10:32
Henry miller3-Nov-04 10:32 

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.