Easy modelsim DPI book

In reply to dave_59:

Thank you for your kind answer.
To speak frankly, I don’t know how to compile the examples of the DPI in modelsim installed folder. In example folder,there are some files,which are related with them.
Step by Step, I want to know how to compile DPI files, which are coded as imported function/task, and exported function/task.(There is no full source code in IEEE 1800.
There is few imported function / task and exported function /task examples in Web.