T
thomas
Hi,
I wrote a utility class, say Util, which will be used by several
projects.
It's like the following senario:
Util.h, Util.cpp --> will be used by project A, project B.
option1: I can make Util.cpp a dll, which can be shared by A and by B.
--> but exporting a class is not good, also not elegant.
option2: I can put a Util.cpp in A and B.
--> obviously bad because I need to change Util.cpp in every
projects if necessary.
option3: I can put the implementation in Util.cpp to Util.h, i.e.,
merging the two files into one -- Util.h
--> also seems bad because the header file is becoming exploding.
Any suggestions how to handle this? Thanks.
--tom
I wrote a utility class, say Util, which will be used by several
projects.
It's like the following senario:
Util.h, Util.cpp --> will be used by project A, project B.
option1: I can make Util.cpp a dll, which can be shared by A and by B.
--> but exporting a class is not good, also not elegant.
option2: I can put a Util.cpp in A and B.
--> obviously bad because I need to change Util.cpp in every
projects if necessary.
option3: I can put the implementation in Util.cpp to Util.h, i.e.,
merging the two files into one -- Util.h
--> also seems bad because the header file is becoming exploding.
Any suggestions how to handle this? Thanks.
--tom