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. delete "anonymous?" string

delete "anonymous?" string

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • D Offline
    D Offline
    daveyerwin
    wrote on last edited by
    #1

    in the thread ... CString ThreadStr ; ThreadStr = "hiya" ; PostMessage((HWND)lParam,WM_USER_MYTHREAD_MESSAGE,NULL,(LPARAM)new CString(ThreadStr)) ; in the dialog ... LRESULT MyAppDlg::OnMyThreadMessage(WPARAM wParam, LPARAM lParam) { CString* cs = (CString*)lParam; How do I delete the new CString() ?

    B 1 Reply Last reply
    0
    • D daveyerwin

      in the thread ... CString ThreadStr ; ThreadStr = "hiya" ; PostMessage((HWND)lParam,WM_USER_MYTHREAD_MESSAGE,NULL,(LPARAM)new CString(ThreadStr)) ; in the dialog ... LRESULT MyAppDlg::OnMyThreadMessage(WPARAM wParam, LPARAM lParam) { CString* cs = (CString*)lParam; How do I delete the new CString() ?

      B Offline
      B Offline
      BadKarma
      wrote on last edited by
      #2

      daveyerwin wrote:

      LRESULT MyAppDlg::OnMyThreadMessage(WPARAM wParam, LPARAM lParam) { CString* cs = (CString*)lParam;

      delete cs;

      codito ergo sum

      M 1 Reply Last reply
      0
      • B BadKarma

        daveyerwin wrote:

        LRESULT MyAppDlg::OnMyThreadMessage(WPARAM wParam, LPARAM lParam) { CString* cs = (CString*)lParam;

        delete cs;

        codito ergo sum

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        5!

        "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

        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