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. Adding a new dialog to an MFC Sample

Adding a new dialog to an MFC Sample

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingtutoriallearning
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
    RaulGonzalez
    wrote on last edited by
    #1

    Hi: It's me again :D well now I have a new one for everyone here. I have been working with an MFC Sample and I want to add a Dialog, Resource Files from 'original' MFC Sample have .C extension but when I add a new Dialog it has .cpp extension, until then there is no problem, i can add member variables, write code and almost a happy developer life. The problem is when I run app the code (for example of a Push Button) isn't recognized or isn't executed!!! And, when I put a breakpoint in the code of the new resource and Run app I get next Message "One or more breakpoint cannot be set and have been disabled. Execution will stop at the beginning of the program" I have tried to change manually .cpp files to .c but VC++ isn't such fool :cool: hehe. Hope your help. This is the strangest life I've ever known.

    X 1 Reply Last reply
    0
    • R RaulGonzalez

      Hi: It's me again :D well now I have a new one for everyone here. I have been working with an MFC Sample and I want to add a Dialog, Resource Files from 'original' MFC Sample have .C extension but when I add a new Dialog it has .cpp extension, until then there is no problem, i can add member variables, write code and almost a happy developer life. The problem is when I run app the code (for example of a Push Button) isn't recognized or isn't executed!!! And, when I put a breakpoint in the code of the new resource and Run app I get next Message "One or more breakpoint cannot be set and have been disabled. Execution will stop at the beginning of the program" I have tried to change manually .cpp files to .c but VC++ isn't such fool :cool: hehe. Hope your help. This is the strangest life I've ever known.

      X Offline
      X Offline
      xxhimanshu
      wrote on last edited by
      #2

      ;)hi, if you can then change all .c files to .cpp files i mean if there is no problem as such. You can change them and add again into the project. Your breakpoint I guess is not on valid place. Put it where you write the code for pushing the button or where you are displaying the dialog. then debug. I hope this solves your problem. cheers Himanshu

      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