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. why myDiagl subclassed from CDialg don't have destructor?

why myDiagl subclassed from CDialg don't have destructor?

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

    Hi, I'd like to know,,. 1) when I create my Dialog from CDialog class, why my Dialog does not have Destrucotr? I want to free some heap memory I used in program,,, when I write writ memory clear code? 2) class CMyView { //from somewhre(such as thread) can FuncA() {A();} //from somewhre(such as thread) can send Window Message via (SendMessage()) FuncB(WPAAM w, LPARAM l) { A();} A(){ print("A() called"); } } I'd like to know How they are diffrent? when from calling function and calling via SendMessage()? Have a day.

    L 1 Reply Last reply
    0
    • R rambojanggoon

      Hi, I'd like to know,,. 1) when I create my Dialog from CDialog class, why my Dialog does not have Destrucotr? I want to free some heap memory I used in program,,, when I write writ memory clear code? 2) class CMyView { //from somewhre(such as thread) can FuncA() {A();} //from somewhre(such as thread) can send Window Message via (SendMessage()) FuncB(WPAAM w, LPARAM l) { A();} A(){ print("A() called"); } } I'd like to know How they are diffrent? when from calling function and calling via SendMessage()? Have a day.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      rambojanggoon wrote:

      why my Dialog does not have Destrucotr?

      Did you code one?

      rambojanggoon wrote:

      How they are diffrent? when from calling function and calling via SendMessage()?

      They are not different, you call the same function in both case.

      MVP 2010 - are they mad?

      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