Calling external functions from within EI 46

I have a dll that has multiple com functions that retrieves data from a sql server database. My hands are tied and I can’t go directly against the database but have to use the dll. Does anyone have an example of how to do this or can you point me in a direction to get the info I need?