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