Click here to Skip to main content
15,885,998 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C Implementation of Boyer-Moore of BMH Pin
Joe Woodbury23-Mar-09 12:20
professionalJoe Woodbury23-Mar-09 12:20 
GeneralRe: C Implementation of Boyer-Moore of BMH Pin
Jeffrey Walton23-Mar-09 21:22
Jeffrey Walton23-Mar-09 21:22 
Questionreusable dialog code Pin
tnarb23-Mar-09 3:39
tnarb23-Mar-09 3:39 
AnswerRe: reusable dialog code Pin
Code-o-mat23-Mar-09 3:43
Code-o-mat23-Mar-09 3:43 
GeneralRe: reusable dialog code Pin
tnarb23-Mar-09 3:57
tnarb23-Mar-09 3:57 
GeneralRe: reusable dialog code Pin
David Crow23-Mar-09 3:59
David Crow23-Mar-09 3:59 
GeneralRe: reusable dialog code Pin
tnarb23-Mar-09 4:10
tnarb23-Mar-09 4:10 
GeneralRe: reusable dialog code Pin
Code-o-mat23-Mar-09 4:12
Code-o-mat23-Mar-09 4:12 
As other speedy people already pointed out, you can reuse dialog resources and classes, unless they are not written to be reusable. I used an .rc2 file, giving a "string ID" to the dialog resource instead of a numeric one, placing the control/commond IDs into a "custom resource.h" and of course the .h and .cpp for the class of the dialog to move commonly used things around projects and this works fine, you just have to remember that you have to explicitly set the .rc2 to be compiled by the resource compiler tool otherwise the resource won't be added to your executable and then you can scratch your head why your dialog does not get displayed when it should.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: reusable dialog code Pin
Yusuf23-Mar-09 7:49
Yusuf23-Mar-09 7:49 
GeneralRe: reusable dialog code Pin
Code-o-mat23-Mar-09 10:01
Code-o-mat23-Mar-09 10:01 
AnswerRe: reusable dialog code Pin
Alan Balkany23-Mar-09 4:03
Alan Balkany23-Mar-09 4:03 
AnswerRe: reusable dialog code Pin
Jonathan Davies23-Mar-09 4:03
Jonathan Davies23-Mar-09 4:03 
Questiondates Pin
Neal beavis23-Mar-09 3:34
Neal beavis23-Mar-09 3:34 
AnswerRe: dates Pin
Iain Clarke, Warrior Programmer23-Mar-09 3:36
Iain Clarke, Warrior Programmer23-Mar-09 3:36 
AnswerRe: dates Pin
Cedric Moonen23-Mar-09 3:37
Cedric Moonen23-Mar-09 3:37 
GeneralRe: dates Pin
Neal beavis23-Mar-09 3:41
Neal beavis23-Mar-09 3:41 
GeneralRe: dates Pin
Cedric Moonen23-Mar-09 3:46
Cedric Moonen23-Mar-09 3:46 
GeneralRe: dates Pin
Neal beavis23-Mar-09 3:49
Neal beavis23-Mar-09 3:49 
GeneralRe: dates Pin
Cedric Moonen23-Mar-09 3:51
Cedric Moonen23-Mar-09 3:51 
GeneralRe: dates Pin
Neal beavis23-Mar-09 3:53
Neal beavis23-Mar-09 3:53 
GeneralRe: dates Pin
CPallini23-Mar-09 3:47
mveCPallini23-Mar-09 3:47 
AnswerRe: dates Pin
CPallini23-Mar-09 3:42
mveCPallini23-Mar-09 3:42 
GeneralRe: dates Pin
Neal beavis23-Mar-09 3:44
Neal beavis23-Mar-09 3:44 
GeneralRe: dates Pin
CPallini23-Mar-09 11:17
mveCPallini23-Mar-09 11:17 
QuestionRe: dates Pin
David Crow23-Mar-09 4:04
David Crow23-Mar-09 4:04 

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.