Generate dll

Top  Previous  Next

Moskito recommends the use of the free compiler OPEN WATCOM (http://www.openwatcom.org). Every other compiler can be also used; nevertheless, the following steps are described at the example of the compiler OPEN WATCOM.

If Moskito and the compiler are installed, any list can be chosen the production of the Source files.

Those functions which should be available to the user, e.g., about the command line have to do the explained form mentioned on top

long int EXPORTENTRY funktion (PROOT root, int argc, char * argv [])

have. An overview of the functions which Moskito makes available as a program interface is in this help.

At least it should be integrated the Moskito.h:

#include "\Moskito\include\moskito.h"

As the next is in the compiler (Watcom\binnt \ide.exe) under file | new to put on Project a new project. Immediately the user is asked to put on a Target.

A Target is a collection of different source code files and libraries whose functions should be summarised in dll.




image5_0

 

 

Then is able under Source | New Source a source code file are inserted.




image5_1

 




image5_2

 

Anyway the lib files from \moskito\lib\watcom.nt must be added.

 

After the Compilieren has to go resulted dll – she lies in the folder in which the project is - are copied after \moskito\main.nt\system\userif\. The compiler OPEN WATCOM can do this, while under Target | Target options | Execute anus is put down:

copy *.dll \moskito\main.nt\system\userif\

By the next start of Moskito these functions are available.