Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL "overload"

Status
Not open for further replies.

florindaniel

Programmer
Dec 4, 2009
120
RO
Hello,
I need to send data to some devices, each using different communication protocol.
I'm thinking to build different DLL for each device, each having the same entry point/call function;
let's say SendData().
Thus I can have a unique user interface and send the data collected to the local device in the same manner for all devices... but:
How can I dynamically select the DLL corresponding to the device attached to the workstation ?

Something like :
switch <curr_dev>
case dev1:
set dll to dev1.dll
case dev2:
set dll to dev2.dll
.
.
.
Thank you
 
Are these managed or unmanaged libraries?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top