Click here to Skip to main content
15,908,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninvoke an MFC callback function from Non MFC app Pin
shreelak14-Jul-06 6:33
shreelak14-Jul-06 6:33 
AnswerRe: invoke an MFC callback function from Non MFC app Pin
led mike14-Jul-06 7:20
led mike14-Jul-06 7:20 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
shreelak26-Jul-06 5:55
shreelak26-Jul-06 5:55 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
led mike26-Jul-06 8:27
led mike26-Jul-06 8:27 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
shreelak26-Jul-06 13:14
shreelak26-Jul-06 13:14 
QuestionResource file: Dialog copy Pin
ldaoust14-Jul-06 5:53
ldaoust14-Jul-06 5:53 
AnswerRe: Resource file: Dialog copy [modified] Pin
led mike14-Jul-06 6:15
led mike14-Jul-06 6:15 
GeneralRe: Resource file: Dialog copy Pin
ldaoust14-Jul-06 8:08
ldaoust14-Jul-06 8:08 
Hi led mike,

My example was for a simple dialog. My situation, and I guess this is something many other programmers have to face, is that I have dialogs that already have a working class with all the code and variables and event handlers doing their stuff. Now, I am adding a copy for this same dialog to add features to it, so logically I will want to use the same code that is already there. The compile condition I add to the dialog copy makes it available only when I compile resources with this condition set. I can add code to the dialog that will also be conditionnaly compiled with the same condition. This makes adding new features to a dialog easy and also is more team friendly.

You are suggesting to add a completly new class to the dialog. This would involve copying all the source from the other class to this new class and then adjusting the class name to match the new. If a modification is done to the original dialogs code (team) it will not be reflected in this class.

Why a copy of a dialog resource would not be a good devcelopement approach ?



Louis
* google is your friend *
GeneralRe: Resource file: Dialog copy Pin
led mike14-Jul-06 8:37
led mike14-Jul-06 8:37 
GeneralRe: Resource file: Dialog copy Pin
ldaoust17-Jul-06 14:59
ldaoust17-Jul-06 14:59 
GeneralRe: Resource file: Dialog copy Pin
led mike17-Jul-06 18:46
led mike17-Jul-06 18:46 
QuestionReadDirectoryChangesW - How does it work? Pin
badpicker14-Jul-06 5:27
badpicker14-Jul-06 5:27 
AnswerRe: ReadDirectoryChangesW - How does it work? Pin
eusto14-Jul-06 6:04
eusto14-Jul-06 6:04 
GeneralRe: ReadDirectoryChangesW - How does it work? Pin
David Crow14-Jul-06 6:06
David Crow14-Jul-06 6:06 
AnswerRe: ReadDirectoryChangesW - How does it work? Pin
David Crow14-Jul-06 6:05
David Crow14-Jul-06 6:05 
QuestionFont & Colour of Static control Pin
si_6914-Jul-06 5:13
si_6914-Jul-06 5:13 
AnswerRe: Font & Colour of Static control Pin
eusto14-Jul-06 6:01
eusto14-Jul-06 6:01 
AnswerRe: Font & Colour of Static control Pin
Hamid_RT14-Jul-06 8:05
Hamid_RT14-Jul-06 8:05 
QuestionCreating sensitive object drawing Pin
kerr_forever14-Jul-06 4:50
kerr_forever14-Jul-06 4:50 
QuestionConverting WIKI markup to HTML Pin
peterchen14-Jul-06 4:30
peterchen14-Jul-06 4:30 
AnswerRe: Converting WIKI markup to HTML Pin
led mike14-Jul-06 6:07
led mike14-Jul-06 6:07 
Questionhow to search a file.. Pin
birajendu14-Jul-06 3:21
birajendu14-Jul-06 3:21 
AnswerRe: how to search a file.. Pin
_AnsHUMAN_ 14-Jul-06 3:40
_AnsHUMAN_ 14-Jul-06 3:40 
AnswerRe: how to search a file.. Pin
David Crow14-Jul-06 3:51
David Crow14-Jul-06 3:51 
GeneralRe: how to search a file.. Pin
birajendu14-Jul-06 4:05
birajendu14-Jul-06 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.