Problems, many problems in Visual C++
-
Why do i get in Windows 98 GetClipboardSequenceNumber undeclared identifier? RegisterShellFilesType(TRUE) for a dialog box based on CRichEditCtrl gives me a debug assertion failed: appui2.cpp line 191. I find ASSERT(m_pDocManager != NULL); and m_pDocManager is CDocManager variable type which is a derived class from Object, but what is CDocManager and what do i have to do in order not to appear this assert?I get this message after i close my app. How ca I implement MRU list in a dialog box?I know about CRecentFileList, but how can i do it because i need a menu item? Where I can have the mfc faq? And please don't tell me about CRichEditView , I already know about it but I can't re-write my entire app because it is quite complex. I have the following code for Find/Replace , but it doesn't working and not even the selection is not working as it should be. bool CMyRtfDlg::FindWhatYouNeed( bool bMatchCase, bool bMatchWholeWord, bool bSearchDown) { FINDTEXTEX findText; findText.lpstrText = (LPTSTR) (LPCTSTR) findName; findText.chrg.cpMin = 0; findText.chrg.cpMax = -1; int nLen=findName.GetLength(); long lResult = m_rtf.FindText(0, &findText); CString s; s.Format("%d",lResult); SetWindowText(s); if (lResult == -1) { MessageBox("No matches!"); bSearchDown = false; return false; } else { m_rtf.SetSel(lResult,nLen); bSearchDown=true; //findText.chrg.cpMin = lResult + 1; //long lResult = m_rtf.FindText(0, &findText); } return true; } Thanks a lot.
-
Why do i get in Windows 98 GetClipboardSequenceNumber undeclared identifier? RegisterShellFilesType(TRUE) for a dialog box based on CRichEditCtrl gives me a debug assertion failed: appui2.cpp line 191. I find ASSERT(m_pDocManager != NULL); and m_pDocManager is CDocManager variable type which is a derived class from Object, but what is CDocManager and what do i have to do in order not to appear this assert?I get this message after i close my app. How ca I implement MRU list in a dialog box?I know about CRecentFileList, but how can i do it because i need a menu item? Where I can have the mfc faq? And please don't tell me about CRichEditView , I already know about it but I can't re-write my entire app because it is quite complex. I have the following code for Find/Replace , but it doesn't working and not even the selection is not working as it should be. bool CMyRtfDlg::FindWhatYouNeed( bool bMatchCase, bool bMatchWholeWord, bool bSearchDown) { FINDTEXTEX findText; findText.lpstrText = (LPTSTR) (LPCTSTR) findName; findText.chrg.cpMin = 0; findText.chrg.cpMax = -1; int nLen=findName.GetLength(); long lResult = m_rtf.FindText(0, &findText); CString s; s.Format("%d",lResult); SetWindowText(s); if (lResult == -1) { MessageBox("No matches!"); bSearchDown = false; return false; } else { m_rtf.SetSel(lResult,nLen); bSearchDown=true; //findText.chrg.cpMin = lResult + 1; //long lResult = m_rtf.FindText(0, &findText); } return true; } Thanks a lot.
Filomela wrote: Why do i get in Windows 98 GetClipboardSequenceNumber undeclared identifier? I assume you have the right .h files included. Do you have
WINVER
defined? If not, take a look at line #4389 of wsinuser.h.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)