Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: listbox custom draw Pin
roel_8-May-04 5:33
roel_8-May-04 5:33 
GeneralBMP trouble Pin
Rafael Fernández López7-May-04 11:40
Rafael Fernández López7-May-04 11:40 
GeneralRe: BMP trouble Pin
Monty27-May-04 20:30
Monty27-May-04 20:30 
GeneralRe: BMP trouble Pin
Rafael Fernández López7-May-04 23:09
Rafael Fernández López7-May-04 23:09 
GeneralNT Service - problem with re-registering Pin
Anonymous7-May-04 11:08
Anonymous7-May-04 11:08 
GeneralRe: NT Service - problem with re-registering Pin
2249177-May-04 19:19
2249177-May-04 19:19 
GeneralRe: NT Service - problem with re-registering Pin
Anonymous9-May-04 5:55
Anonymous9-May-04 5:55 
GeneralFile organization with larger projects Pin
Steve Messer7-May-04 10:07
Steve Messer7-May-04 10:07 
I am having some difficulty and would like some view points on setting up the directory structure of projects that arent so small anymore.

Currently I have three parts to my project. The Core application and the Plugin are dialog based MFC programs.

1) Core Application
2) Common code
3) Plugin Framework

Each in a separate directory. The common code consists of utility functions, drawing routines, etc, which are shared between the core application and the Plugin Framework. One of my problems is that the MFC header file stdafx.h are all the includes for MFC stuff like CString. I don't want to hard code the path from the common directory back to my current project directory.

For example a file in the common directory needs to use CString but does not know what it is. I don't want to have to do this because I think it is bad technique.

#include "d:\project\stdafx.h"

I also don't want to do this

#ifdef CORE_APP
#include "d:\project1\stdafx.h"
#else
#include "d:\project2\stdafx.h"
#endif

As a result of moving all the files around I am now getting CString access violations and I am guessing it must have something to do with my poor file structure.

So what is a good approach for separating common files like in my situation?

Hope that made sense.






GeneralRe: File organization with larger projects Pin
Maarten Kools7-May-04 10:22
professionalMaarten Kools7-May-04 10:22 
GeneralRe: File organization with larger projects Pin
Steve Messer7-May-04 11:07
Steve Messer7-May-04 11:07 
GeneralRe: File organization with larger projects Pin
John M. Drescher7-May-04 10:24
John M. Drescher7-May-04 10:24 
GeneralRe: File organization with larger projects Pin
Steve Messer7-May-04 11:25
Steve Messer7-May-04 11:25 
GeneralRe: File organization with larger projects Pin
John M. Drescher8-May-04 16:07
John M. Drescher8-May-04 16:07 
GeneralRe: File organization with larger projects Pin
Steve Messer8-May-04 18:02
Steve Messer8-May-04 18:02 
GeneralRe: File organization with larger projects Pin
John M. Drescher7-May-04 10:29
John M. Drescher7-May-04 10:29 
GeneralRe: File organization with larger projects Pin
Steve Messer7-May-04 11:27
Steve Messer7-May-04 11:27 
GeneralContext-sensitive modular HTML Help Pin
Banister7-May-04 8:38
Banister7-May-04 8:38 
GeneralC++ callback __cdecl to __thiscall Pin
greg897-May-04 7:52
greg897-May-04 7:52 
GeneralRe: C++ callback __cdecl to __thiscall Pin
Maarten Kools7-May-04 8:00
professionalMaarten Kools7-May-04 8:00 
GeneralRe: C++ callback __cdecl to __thiscall Pin
greg897-May-04 10:03
greg897-May-04 10:03 
GeneralRe: C++ callback __cdecl to __thiscall Pin
Maarten Kools7-May-04 10:12
professionalMaarten Kools7-May-04 10:12 
GeneralRe: C++ callback __cdecl to __thiscall Pin
John M. Drescher7-May-04 10:31
John M. Drescher7-May-04 10:31 
GeneralRe: C++ callback __cdecl to __thiscall Pin
valikac7-May-04 18:51
valikac7-May-04 18:51 
GeneralNM_CUSTOMDRAW (ListView) Pin
Maarten Kools7-May-04 7:22
professionalMaarten Kools7-May-04 7:22 
GeneralRe: NM_CUSTOMDRAW (ListView) Pin
Gary R. Wheeler8-May-04 14:06
Gary R. Wheeler8-May-04 14:06 

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.