Download GENDLL

This file contains important information about working with magic and 
GenDll.dll.

Purpose : To call to another DLL in windows 32bit environment. 

Impoertant :
         1. GelDll can be used from Magic version 7.X only.
         2. All Dll's that are going to be called should be 32bit and
            1 byte alignment.
Method : To call the GenDll you must use "CALL UDP" magic command and pass
         the following parameters :

              Dll Name - An Alpha field that holds the dll      
                         name to call to                   
              FuncName - An alpha field holds the function.
                         name inside the calling dll.      
              nParams  - Number of parameters to pass to   
                         dll function (Numeric field).
              MASK     - The mask is an alpha field that contains the type of
                         each parametrs in the function to be called as
                         followed :
                                     A  - char *           
                                     L  - long *           
                                     I  - word *           
                                     Dnn - double *        
                                     Fnn - float *         
                                     a  - char             
                                     l  - long             
                                     i  - word             
                                     d  - double           
                                     f  - float            

              RetCode  - A numeric variable to holds the   
                         return code.                      
              Param..  - 10 alpha fields that will be used to send data
                         to the function.
Examples : 

    CALL-UDP "myproc", "add_sub", 4, "ALLL", D, '+', STR(A,'8'), STR(B,'8'),F
    Update C VAL(F, '4')

A - Numeric 4
B - Numeric 4
C - Numeric 4
D - Numberc 1  (RetCode) 
E - Alpha   10 
F - Alpha   1  (Dummy)