Hi,
if your dll is .NET application using objectaRX 2007 or later, you can embed the function in a "LispFunction"
Look at the ObjectARX Developer's Guide > Using .NET for AutoCAD Development > ObjectARX Managed Wrapper Classes > Getting Started with Managed Wrappers > Defining Methods That Can Be Called From AutoLISP