TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jxphklibin on August 18, 2009, 10:35:45 PM
-
Hi, all!
How to call a function in dll by vlisp?
thanks!
leeben
-
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.
-
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
-
What I mean is that the dll call WinAPI function, such as the timer in the user32.dll (function settimer).