Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help !!! Pin
13-Nov-01 16:22
suss13-Nov-01 16:22 
GeneralRe: Please help !!! Pin
Tomasz Sowinski13-Nov-01 22:24
Tomasz Sowinski13-Nov-01 22:24 
GeneralRe: Please help !!! Pin
Nish Nishant13-Nov-01 18:32
sitebuilderNish Nishant13-Nov-01 18:32 
GeneralRe: Please help !!! Pin
14-Nov-01 4:54
suss14-Nov-01 4:54 
GeneralRe: Please help !!! Pin
Mark Terrano16-Nov-01 12:28
Mark Terrano16-Nov-01 12:28 
GeneralRetrieve process Pin
Fred/M13-Nov-01 4:57
Fred/M13-Nov-01 4:57 
GeneralRe: Retrieve process Pin
Paolo Messina13-Nov-01 7:09
professionalPaolo Messina13-Nov-01 7:09 
GeneralSubprojects / static libraries Pin
Jimmy Ehrnström13-Nov-01 4:34
Jimmy Ehrnström13-Nov-01 4:34 
I have a workspace consisting of five projects. Let's call them Project A through E. The structure I'm aiming for is the following:
  A
 / \
B  C
  / \
 D   E

I've updated the dependencies so that A is dependent of B and C, and C is dependent of D and E.

Project A is a regular application while B through E are static libraries providing functionality to the application.

My problem is that I have a couple of classes with identical names in the different projects. The classes aren't identical but play a similiar role in the different projects. When compiling I get warnings about the classes already being defined and that the second definition is ignored.

Since I'm still relatively new to VC++ I'm not sure if my approach is the right one. Maybe I should try another structure, but this is the one that feels most intuitive because of the way my projects are related.

Maybe I'm just not including my libraries correctly? Or is the problem that I have conflicting class names? Should I rename the classes within the projects, or is it possible to just add some sort of namespaces?

I would much appreciate some pointers to what I might be doing wrong. Examples of project settings and such.

Thanks in advance!
GeneralRe: Subprojects / static libraries Pin
Michael P Butler13-Nov-01 4:41
Michael P Butler13-Nov-01 4:41 
GeneralRe: Subprojects / static libraries Pin
Jimmy Ehrnström13-Nov-01 4:51
Jimmy Ehrnström13-Nov-01 4:51 
GeneralRe: Subprojects / static libraries Pin
Michael P Butler13-Nov-01 4:58
Michael P Butler13-Nov-01 4:58 
GeneralRe: Subprojects / static libraries Pin
Jimmy Ehrnström13-Nov-01 5:10
Jimmy Ehrnström13-Nov-01 5:10 
GeneralRe: Subprojects / static libraries Pin
Paolo Messina13-Nov-01 7:03
professionalPaolo Messina13-Nov-01 7:03 
GeneralRe: Subprojects / static libraries Pin
Jimmy Ehrnström13-Nov-01 20:26
Jimmy Ehrnström13-Nov-01 20:26 
GeneralRe: Subprojects / static libraries Pin
Paolo Messina14-Nov-01 7:02
professionalPaolo Messina14-Nov-01 7:02 
GeneralRe: Subprojects / static libraries Pin
Jimmy Ehrnström15-Nov-01 1:04
Jimmy Ehrnström15-Nov-01 1:04 
GeneralRe: Subprojects / static libraries Pin
Jimmy Ehrnström15-Nov-01 1:41
Jimmy Ehrnström15-Nov-01 1:41 
GeneralError when INSERT in Excel db Pin
XAlien13-Nov-01 4:25
XAlien13-Nov-01 4:25 
GeneralCMonthCalCtrl and mouse messages Pin
13-Nov-01 3:57
suss13-Nov-01 3:57 
GeneralRe: CMonthCalCtrl and mouse messages Pin
Christian Graus13-Nov-01 8:57
protectorChristian Graus13-Nov-01 8:57 
GeneralRe: CMonthCalCtrl and mouse messages Pin
adrenochrome13-Nov-01 10:54
adrenochrome13-Nov-01 10:54 
GeneralRe: CMonthCalCtrl and mouse messages Pin
Christian Graus13-Nov-01 18:22
protectorChristian Graus13-Nov-01 18:22 
GeneralRe: Try to use PreTranslateMessage func! Pin
Masaaki Onishi13-Nov-01 11:35
Masaaki Onishi13-Nov-01 11:35 
GeneralRe: CMonthCalCtrl and mouse messages Pin
adrenochrome14-Nov-01 8:02
adrenochrome14-Nov-01 8:02 
GeneralMenu in Child Frame Pin
Simon Brown13-Nov-01 3:52
Simon Brown13-Nov-01 3:52 

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.