Hi, I have a DLL containing a number of string handling functions which I wish to call from lisp. How do I go about linking the DLL to my lisp program ? How do I call it ? In VBA, I simply attach it using the [Tools][References] Then I have lines such as: Dim Mydll As MydllProgram Set Mydll = New MydllProgram ReturnString = Mydll (PassedString) -- Laurie Comerford CADApps www.cadapps.com.au
Something like this (setq acd (vlax-get-acad-object)) (setq srv (vlax-invoke acd "getinterfaceobject" "your dll.class")) (setq ret (vlax-invoke srv "your dll function"))
check out acadx.com for nice explanation "Laurie Comerford" <> |>Hi, |> |>I have a DLL containing a number of string handling functions which I wish |>to call from lisp. |> |>How do I go about linking the DLL to my lisp program ? |> |>How do I call it ? |> |>In VBA, I simply attach it using the [Tools][References] |> |>Then I have lines such as: |> |>Dim Mydll As MydllProgram |> |> Set Mydll = New MydllProgram |> ReturnString = Mydll (PassedString) James Maeding Civil Engineer/Programmer