TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jxphklibin on August 18, 2009, 10:35:45 PM

Title: How to call a function in dll by vlisp?
Post by: jxphklibin on August 18, 2009, 10:35:45 PM
 Hi, all!

How to call a function in dll by vlisp?

thanks!

leeben
Title: Re: How to call a function in dll by vlisp?
Post by: Keith™ on August 19, 2009, 10:06:08 AM
If it is COM exposed, you can do it as shown here (http://www.theswamp.org/index.php?topic=29930.msg355039#msg355039) otherwise you can import it into VBA .. perhaps build a COM interface and import it ... there are options, they may not necessarily be what you are looking for though.
Title: Re: How to call a function in dll by vlisp?
Post by: gile on August 19, 2009, 11:11:20 AM
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
Title: Re: How to call a function in dll by vlisp?
Post by: jxphklibin on August 19, 2009, 09:35:50 PM
What I mean is that the dll call WinAPI function, such as the timer in the user32.dll (function settimer).