M
Michael C
I have a windows exe project that has all data access code in a dll. Some of
the fields have values that correspond to an enum, eg
enum VideoSizeMode
{
FitToScreen = 1,
FitToScreenKeepAspect = 2,
NativeSize = 3
}
If I define VideoSizeMode in the dll then both the dll and exe can use the
enum no probs and everything work's fine. The problem is I would like to
create a usercontrol in a seperate project that will be referenced by the
exe but won't be dependant on the dll or exe, so that it could be reused in
another project say. I would like this seperate usercontrol to be able to
use the enum also. How would you guys approach this? If I define the enum in
the dll then the usercontrol cannot use it but if I define it in the
usercontrol then the dll can't use it. I can think of lots of options but no
good solutions.
Many thanks,
Michael
the fields have values that correspond to an enum, eg
enum VideoSizeMode
{
FitToScreen = 1,
FitToScreenKeepAspect = 2,
NativeSize = 3
}
If I define VideoSizeMode in the dll then both the dll and exe can use the
enum no probs and everything work's fine. The problem is I would like to
create a usercontrol in a seperate project that will be referenced by the
exe but won't be dependant on the dll or exe, so that it could be reused in
another project say. I would like this seperate usercontrol to be able to
use the enum also. How would you guys approach this? If I define the enum in
the dll then the usercontrol cannot use it but if I define it in the
usercontrol then the dll can't use it. I can think of lots of options but no
good solutions.
Many thanks,
Michael