MtmdLoadDll v1.0
Copyright (C) Mansur Mamkin, 2003

This software is developed to enable of user DLLs' functions call from within LISP programs.
Source code is included.

Main features of MtmdLoadDll:

- Passing arbitrary number of arguments (up to 10 arguments) to function
- Passing pointer to AutoCAD IDispatch interface as argument to function

Installation:

Run AutoCAD and load MtmdLoadDll.arx module into it
(Tools->Load Application...) or type _appload command

Usage format:

(MtmdLoadDll "DLLName" "FuncName" ParamCount ["Type1" Param1 [...]])

Available parameter types:
(examples of pairs "type" param)

"LONG" 23         - Long integer
"STRING" "text"   - String (PChar)
"LONGRESULT" 0    - Output integer parameter
"STRRESULT" 60    - Output string parameter
"IACADAPP" 0      - Pointer to IDispatch interface of AutoCAD application

Return value:

The return value of the executed function if no output parameter is specified. 
Otherwise the value returned by the executed function in the "STRRESULT" 
or "LONGRESULT" output parameter.

Important notes:
 - more than one output parameter is not allowed
 - value of "LONGRESULT" parameter is ignored
 - value of "STRRESULT" parameter indicates PChar buffer size
	 and so must be greater than 0
 - calling convention of DLL function must be "stdcall"

========================================================================

 ARX  ।祭  맮 㭪権 짮⥫᪮ DLL  LISP-ணࠬ.
⠢   室 ⥪⮬ ணࠬ.

:

- 맮 㭪権   DLL  ந ⢮
   ந묨 ⨯ ࠬ஢ ( 10 ࠬ஢)
-  ।  㭪 㪠⥫  䥩 
  IDispatch ਫ AutoCAD


⠭:
 AutoCAD  㧨    MtmdLoadDll.arx
(Tools->Load Application...)   _appload

ଠ 맮:
(MtmdLoadDll "DLL" "_㭪樨" -_ࠬ஢ ["⨯1" ࠬ1 [...]])

 ⨯ ࠬ஢:
(ਬ  "⨯" ࠬ)

"LONG" 23         - 楫 ᫮
"STRING" "ப" - ப ࠬ
"LONGRESULT" 0    - 室 ࠬ (楫 ᫮)
"STRRESULT" 60    - 室 ࠬ (ப)
"IACADAPP" 0      - 㪠⥫  䥩 IDispatch AutoCAD

頥 祭:

祭 뢠 㭪樨, ᫨ । 㬥⮢  ⨯ LONGRESULT  STRRESULT,
 祭 室 ࠬ.

砭:
 - । ࠬ஢ 㭪樨 ࠧ蠥 㪠뢠    室 ࠬ
 - 祭 ࠬ "LONGRESULT"  ( 㪠  祭)
 - 祭 ࠬ "STRRESULT" 㪠뢠 ࠧ ()  ப PCHAR
       
 - 㭪 DLL   ⨯ "stdcall"


 




