Click here to Skip to main content
15,891,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question3-in-1 project? Pin
Joe Smith IX27-Oct-06 6:41
Joe Smith IX27-Oct-06 6:41 
AnswerRe: 3-in-1 project? Pin
Mark Salsbery27-Oct-06 7:00
Mark Salsbery27-Oct-06 7:00 
GeneralRe: 3-in-1 project? Pin
Joe Smith IX28-Oct-06 9:51
Joe Smith IX28-Oct-06 9:51 
GeneralRe: 3-in-1 project? Pin
Mark Salsbery29-Oct-06 7:26
Mark Salsbery29-Oct-06 7:26 
AnswerRe: 3-in-1 project? Pin
led mike27-Oct-06 7:15
led mike27-Oct-06 7:15 
QuestionRe: 3-in-1 project? Pin
David Crow27-Oct-06 7:17
David Crow27-Oct-06 7:17 
AnswerRe: 3-in-1 project? Pin
Zac Howland27-Oct-06 7:28
Zac Howland27-Oct-06 7:28 
AnswerRe: 3-in-1 project? Pin
Gary R. Wheeler29-Oct-06 2:21
Gary R. Wheeler29-Oct-06 2:21 
You can build this all into a single project, and then compile it differently for each client. The approach I've used in the past is something like this:
#define CUSTOMER_ALPHA 0
#define CUSTOMER_BETA 1
#define CUSTOMER_GAMMA 2
//...
#define CUSTOMER CUSTOMER_BETA
//...
class MyDialog : public CDialog {
#if CUSTOMER == CUSTOMER_ALPHA
enum { IDD = IDD_CUSTOMER_ALPHA };
#elif CUSTOMER == CUSTOMER_BETA
enum { IDD = IDD_CUSTOMER_BETA };
#elif CUSTOMER == CUSTOMER_GAMMA
enum { IDD = IDD_CUSTOMER_GAMMA };
#endif
};
You create separate resources for the dialog for each customer: IDD_CUSTOMER_ALPHA, IDD_CUSTOMER_BETA, and IDD_CUSTOMER_GAMMA. I'm assuming here that the dialogs for each of the customers are similar enough that you can use a single class to support all three. Within the MyDialog code you can look at the CUSTOMER value in case there are differences you need to know about.


Software Zen: delete this;

QuestionGDI+ graphics returns 0 visible clip rect for secondary monitor Pin
gkitts27-Oct-06 5:12
gkitts27-Oct-06 5:12 
Questionmessage loop in directx Pin
shaderx27-Oct-06 5:00
shaderx27-Oct-06 5:00 
AnswerRe: message loop in directx Pin
Zac Howland27-Oct-06 8:00
Zac Howland27-Oct-06 8:00 
QuestionCDialog Pin
baerten27-Oct-06 4:50
baerten27-Oct-06 4:50 
AnswerRe: CDialog Pin
Mark Salsbery27-Oct-06 5:33
Mark Salsbery27-Oct-06 5:33 
AnswerRe: CDialog Pin
Hamid_RT27-Oct-06 21:39
Hamid_RT27-Oct-06 21:39 
GeneralRe: CDialog [modified] Pin
baerten29-Oct-06 21:25
baerten29-Oct-06 21:25 
QuestionHow to check thread.? Pin
Max++27-Oct-06 4:22
Max++27-Oct-06 4:22 
AnswerRe: How to check thread.? Pin
Mike Dimmick27-Oct-06 4:26
Mike Dimmick27-Oct-06 4:26 
GeneralRe: How to check thread.? Pin
Max++27-Oct-06 4:32
Max++27-Oct-06 4:32 
GeneralRe: How to check thread.? Pin
benjymous27-Oct-06 5:06
benjymous27-Oct-06 5:06 
GeneralRe: How to check thread.? Pin
led mike27-Oct-06 5:11
led mike27-Oct-06 5:11 
GeneralRe: How to check thread.? Pin
ThatsAlok28-Oct-06 2:01
ThatsAlok28-Oct-06 2:01 
Questionproblem using WideCharToMultiByte() Pin
priyank_ldce27-Oct-06 3:54
priyank_ldce27-Oct-06 3:54 
AnswerRe: problem using WideCharToMultiByte() Pin
Nemanja Trifunovic27-Oct-06 4:11
Nemanja Trifunovic27-Oct-06 4:11 
QuestionDirectX license Pin
Daniel Kanev7-Mar-17 10:45
Daniel Kanev7-Mar-17 10:45 
AnswerRe: DirectX license Pin
Zac Howland27-Oct-06 3:33
Zac Howland27-Oct-06 3:33 

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.