Selective Inclusion of Device Classes

I am trying to architect a generic C++ application that is able to support different sets of hardware devices. I was planning on writing generic wrappers for specific devices to make the calling of those devices more generic. However I don't know a way of specifying which devices are being used and how to compile and link the code so it only depends on the APIs of the included devices and not all devices.

Thank you for your help,

-brian
DLLs are what you're asking for - put the implementation in there and write your API C-style. Granted, C-style is not required for DLL exports, but it definitely makes the whole thing a lot simpler. Your template should provide an initialization function that would allow you to specify (possibly bit-flags, but it's your choice) which devices you want to use in your implementation.
Topic archived. No new replies allowed.