Declaration of user's functions |
Top Previous Next |
User's functions receive her parametres like a C programme. As a return value either an integer (16 bits) or a string can serve. long int EXPORTENTRY userfunktion ( int argc, char * argv [] ); argc if the number is the parametre in argv. argv if is a field with string which contains the parametres. Up to the dissolution in parametre which happens in each case in a blank these have not been changed. Also Flags with name / value are included. EXPORTENTRY provides for the fact that the procedure is provided in the DLL as an entrance point. Further the arguments on the stack will hand over. The return value long int is a special case. If a value hands over here between-32768 and 32767, is this one number. The value 0 is usually interpreted as OK, other values than error messages. Values beyond this area may not be returned. Furthermore can be returned after a Typcast, one with Malloc or Calloc invested string of any length. Then this string is the result of this function. The storage space is automatically released by Moskito. The length is really any. This is valid for the return value just as for the parametre number and parametre length.
|