J
Jeff Gaines
I have set up a number of frequently used functions in separate
classes in a folder called 'Jlib'. Each class is in its own file all
with the Namespace 'Jlib'.
To avoid duplication they often refer to other classes in the same
folder, i.e. my file functions are in a class called JGFF in their own
file. However some of the JGFF functions rely on, say, a DLL prototype
whose definition is in a class called JGAPI which is in its own file.
This all works fine in testing but when used in an app I have to set
up a link to both JGFF and JGAPI. Ideally I would like to just set up
a link to JGFF and have that automatically find/refer to JGAPI.
The solutions I have come up with are:
build all the functions into a DLL and use that - it works but it is
quite a large DLL.
put all the classes in to one file - I guess that would work but it
would be unwieldy.
Make each class self contained - but that leads to lots of
duplication.
Does anybody have any other suggestions/thoughts on a layout/structure
that would only require one reference in an app?
classes in a folder called 'Jlib'. Each class is in its own file all
with the Namespace 'Jlib'.
To avoid duplication they often refer to other classes in the same
folder, i.e. my file functions are in a class called JGFF in their own
file. However some of the JGFF functions rely on, say, a DLL prototype
whose definition is in a class called JGAPI which is in its own file.
This all works fine in testing but when used in an app I have to set
up a link to both JGFF and JGAPI. Ideally I would like to just set up
a link to JGFF and have that automatically find/refer to JGAPI.
The solutions I have come up with are:
build all the functions into a DLL and use that - it works but it is
quite a large DLL.
put all the classes in to one file - I guess that would work but it
would be unwieldy.
Make each class self contained - but that leads to lots of
duplication.
Does anybody have any other suggestions/thoughts on a layout/structure
that would only require one reference in an app?