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. About CView problem,thank:)

About CView problem,thank:)

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingtutorial
3 Posts 3 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.
  • R Offline
    R Offline
    rxgmoral
    wrote on last edited by
    #1

    About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)

    R D 2 Replies Last reply
    0
    • R rxgmoral

      About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      rxgmoral wrote:

      but run Error

      Do you mean in Release ?

      ~RaGE();

      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

      1 Reply Last reply
      0
      • R rxgmoral

        About CView problem,thank:) <<<<<<<<>>>>>> class Preview : public CView { public: virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo *pInfo); void OnPrint(CDC *pDC, CPrintInfo* pInfo); }; <<<<<>>>>>>>> void Preview::OnDraw(CDC* /*pDC*/) { } BOOL Preview::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); } void Preview::OnPrint(CDC *pDC, CPrintInfo* pInfo) { CString str=_T("rrr"); pDC->TextOut(0,30,str); } <<<<<<<<<<>>>>>>> Preview * p=new Preview(); p->GetDC()->TextOutW(1,2,_T("rxg")); i think add char to p; Debug no Error,but run Error how to add char to TextOutW function in p sorry,My English isn't good thank:)

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

        rxgmoral wrote:

        sorry,My English isn't good

        English aside, what's the actual problem? What are you trying to do?


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

        "Judge not by the eye but by the heart." - Native American Proverb

        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