Click here to Skip to main content
15,845,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninvoke an MFC callback function from Non MFC app Pin
shreelak14-Jul-06 7:33
shreelak14-Jul-06 7:33 
AnswerRe: invoke an MFC callback function from Non MFC app Pin
led mike14-Jul-06 8:20
led mike14-Jul-06 8:20 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
shreelak26-Jul-06 6:55
shreelak26-Jul-06 6:55 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
led mike26-Jul-06 9:27
led mike26-Jul-06 9:27 
GeneralRe: invoke an MFC callback function from Non MFC app Pin
shreelak26-Jul-06 14:14
shreelak26-Jul-06 14:14 
QuestionResource file: Dialog copy Pin
ldaoust14-Jul-06 6:53
ldaoust14-Jul-06 6:53 
AnswerRe: Resource file: Dialog copy [modified] Pin
led mike14-Jul-06 7:15
led mike14-Jul-06 7:15 
GeneralRe: Resource file: Dialog copy Pin
ldaoust14-Jul-06 9:08
ldaoust14-Jul-06 9: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 9:37
led mike14-Jul-06 9:37 
GeneralRe: Resource file: Dialog copy Pin
ldaoust17-Jul-06 15:59
ldaoust17-Jul-06 15:59 
GeneralRe: Resource file: Dialog copy Pin
led mike17-Jul-06 19:46
led mike17-Jul-06 19:46 
QuestionReadDirectoryChangesW - How does it work? Pin
badpicker14-Jul-06 6:27
badpicker14-Jul-06 6:27 
AnswerRe: ReadDirectoryChangesW - How does it work? Pin
eusto14-Jul-06 7:04
eusto14-Jul-06 7:04 
GeneralRe: ReadDirectoryChangesW - How does it work? Pin
David Crow14-Jul-06 7:06
David Crow14-Jul-06 7:06 
AnswerRe: ReadDirectoryChangesW - How does it work? Pin
David Crow14-Jul-06 7:05
David Crow14-Jul-06 7:05 
QuestionFont & Colour of Static control Pin
si_6914-Jul-06 6:13
si_6914-Jul-06 6:13 
AnswerRe: Font & Colour of Static control Pin
eusto14-Jul-06 7:01
eusto14-Jul-06 7:01 
AnswerRe: Font & Colour of Static control Pin
Hamid_RT14-Jul-06 9:05
Hamid_RT14-Jul-06 9:05 
QuestionCreating sensitive object drawing Pin
kerr_forever14-Jul-06 5:50
kerr_forever14-Jul-06 5:50 
QuestionConverting WIKI markup to HTML Pin
peterchen14-Jul-06 5:30
peterchen14-Jul-06 5:30 
AnswerRe: Converting WIKI markup to HTML Pin
led mike14-Jul-06 7:07
led mike14-Jul-06 7:07 
Questionhow to search a file.. Pin
birajendu14-Jul-06 4:21
birajendu14-Jul-06 4:21 
AnswerRe: how to search a file.. Pin
_AnsHUMAN_ 14-Jul-06 4:40
_AnsHUMAN_ 14-Jul-06 4:40 
AnswerRe: how to search a file.. Pin
David Crow14-Jul-06 4:51
David Crow14-Jul-06 4:51 
GeneralRe: how to search a file.. Pin
birajendu14-Jul-06 5:05
birajendu14-Jul-06 5: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.