I have a library that I'd like to have both a WinForms app and a CF app
utilize. Generally the code is very compatible but sometimes there are some
differences.
At first I thought I could use conditional statements like #if (POCKETPC),
#else, and #endif to differentiate different code constructs but then I
learned that these only take effect at compile time.
So I'm wondering if there's another way for code to differentiate at run
time and still execute properly.
Any ideas?
--
Robert W.
Vancouver, BC
utilize. Generally the code is very compatible but sometimes there are some
differences.
At first I thought I could use conditional statements like #if (POCKETPC),
#else, and #endif to differentiate different code constructs but then I
learned that these only take effect at compile time.
So I'm wondering if there's another way for code to differentiate at run
time and still execute properly.
Any ideas?
--
Robert W.
Vancouver, BC
Comment