Author Topic: How to call a function in dll by vlisp?  (Read 2568 times)

0 Members and 1 Guest are viewing this topic.

jxphklibin

  • Guest
How to call a function in dll by vlisp?
« on: August 18, 2009, 10:35:45 PM »
 Hi, all!

How to call a function in dll by vlisp?

thanks!

leeben

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: How to call a function in dll by vlisp?
« Reply #1 on: August 19, 2009, 10:06:08 AM »
If it is COM exposed, you can do it as shown here 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.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: How to call a function in dll by vlisp?
« Reply #2 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
Speaking English as a French Frog

jxphklibin

  • Guest
Re: How to call a function in dll by vlisp?
« Reply #3 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).