|
Building user functions for the DLL...
- create a new project that includes: -DllMain.C -Usrfunc.C
-clpusrfn.def -Clips.Lib (provided with the 32 bit
DLL) [rather than include the Clips.Lib - you can
dynamically hook DefineFunction and any other needed
CLIPS funcs, your call...]
- Edit Usrfunc.c/.h to establish your userfunctions...
Edit CLPUSRFN.DEF to export the userfunctions
- build the CLPUSRFN.DLL, and put it where CLIPS.DLL
can find it
I have provided all the above to implement a simple
userfunction called message-box, and provided a sample
CLIPS batch file. Simply D/L the UserFunction sample
provided on this site. To test same, you can use the
CLIPS Test sample project, (for VC++ 4.x), also available
on this site.
|