Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problems, many problems in Visual C++

Problems, many problems in Visual C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiondebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Filomela
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • F Filomela

      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.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups