newlisp.DLL possible?

Started by HPW, October 13, 2003, 12:30:58 PM

Previous topic - Next topic

HPW

#75
I uploaded a new demo-exe of the release demo to my plugin-page:



http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip">http://hpwickern.bei.t-online.de/anmeld ... SPDemo.zip">http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip



Based on hpwNewLISP.nbp 1.04 with multiple restart-feature for hpwNewLispCall.

Global neobook var [hpwNewLispRestartCall] contains the current Lisp-call.

In the first nl-restart-call [hpwNewLispRestartCall] is set by the interface and then it can be set from Lisp to call other functions.
Hans-Peter

HPW

#76

;; define the error handling routine
(define (error-handler) (print "ERR:" (error-number) " " (error-text)))

;; set it as the error-event
(error-event 'error-handler)

(foo) =>

ERR:20 invalid function : (foo)


When this would work in the DLL, I could check for starting 'ERR:' and set neobook's global [LastError].
Hans-Peter

Lutz

#77
It was not enabled in the DLL, but is working and tested now. Look for a new newlisp.dll.rc2  in the development directory.



Lutz

HPW

#78
Thanks for the fast fix.

Works now as expected.

Have to work on the 1.05 now when time will allow.
Hans-Peter

HPW

#79
I uploaded a new demo-exe of the release demo to my plugin-page:



http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip">http://hpwickern.bei.t-online.de/anmeld ... SPDemo.zip">http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip



Based on hpwNewLISP.nbp 1.05 with a customised error-handler in newlisp is now connected with the neobook error-handling via [LastError]



So an error in newlisp pops up the neobook error meassage window.
Hans-Peter

nigelbrown

#80
My IBASIC program using  the dll (rc2) isn't finding the ini.lsp

my directory looks lile:

C:Program FilesPyxia DevelopmentIBasic>dir



 Volume in drive C is P1300

 Volume Serial Number is 351A-07ED

 Directory of C:Program FilesPyxia DevelopmentIBasic



.              <DIR>        12-14-03  7:43a .

..             <DIR>        12-14-03  7:43a ..

UNINST   ISU        26,805  12-14-03  7:43a Uninst.isu

SAMPLES        <DIR>        12-14-03  7:43a samples

HELP           <DIR>        12-14-03  7:43a help

COMPON~1       <DIR>        12-14-03  7:43a components

GORC     EXE        49,664  08-25-02  6:25p GORC.EXE

IBCLI    OBJ       131,072  11-28-03  2:22a IBCLI.obj

IB       OBJ       456,192  11-28-03  2:21a IB.obj

IBNODX   OBJ       384,000  11-28-03  2:21a IBNODX.obj

NLDLL    IBA           310  12-14-03  8:15a nldll.iba

IBASIC   EXE     1,130,496  11-27-03  9:41p ibasic.exe

NEWLISP  DLL       196,608  12-14-03  8:17a newlisp.dll

RECOVER  IBA           310  12-14-03  9:12a recover.iba

INI      LSP            24  12-14-03  8:20a ini.lsp

        10 file(s)      2,375,481 bytes

         5 dir(s)          492.27 MB free



C:Program FilesPyxia DevelopmentIBasic>type ini.lsp

(setq aa "set by ini")



The Ibasic prog is the read-eval-loop as above

I get after start-up:

>(print aa)

OUT:nilnil

>



The program is running as an interpreted session from within the IDE but from

what I can see all files are in the one directory.

greping source code (7.3.17) gives:

C:newlispnewlisp_7317>grep "ini.lsp" *.c



C:newlispnewlisp_7317>grep "init.lsp" *.c

newlisp.c:#define INIT_FILE "init.lsp"

newlisp.c:#define INIT_FILE "/usr/share/newlisp/init.lsp"



C:newlispnewlisp_7317>



but changing the file to init.lsp doesn't change anything.



What am I missing? Any tips?

Can I check what path the dll is calling home?



Nigel

nigelbrown

#81
Just a thought would the spaces in the path cause problems?

ie ...Program Files... etc

Nigel

Sammo

#82
Hi Nigel,



Should that be init.lsp?  newLISP.dll called from NeoBook via Hans-Peter's hpwNewLisp plug-in is loading my just-now-created init.lsp file.



-- Sam

Lutz

#83
yes! init.lsp not ini.lsp



The init.lsp should be in the current directory of the program importing newlisp.dll.



yes you can check the path newlisp.dll is calling home doing this from your importing program.



dllEvalStr "(directory)"



this will return a list of files in the directory where newlisp.dll is expecting the init.lsp



Lutz

nigelbrown

#84
I found that the problem in finding the init.lsp file was that the shortcut to start Ibasic.exe (that had been created by the installer) had the "Start in" directory set incorrectly

- it was pointing to a non-existant subdirectory so the "Start in" directory

defaulted to C:.

Once the "Start in" directory is correctly speciifed everything works fine.

I'll let Pyxia know about the install error.

Nigel

HPW

#85
I have released hpwNewLISP 1.06:



Features:



Action: hpwNewLispCall - 1.Parameter for DLL-Path removed!

Action: hpwSetNewLispDir - Set DLL-Path one time in the pub!

Support for Custom-plugin commands. Definitions in file neoLISP.cmd!

nb_util.lsp renamed to init.lsp which is automaticly loaded by newLISP.

iSEDQuickPDF.lsp with all import functions for iSEDQuickPDF.dll

Final newLISP.dll 7.400





This has no effekt to the lisp-functionality. But neobook users can define their own neosript-command via a text-file which are then send to newlisp.dll. Offers better integration in the neobook action-editor.
Hans-Peter

HPW

#86
I uploaded a new demo-exe of the release demo to my plugin-page:



http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip">http://hpwickern.bei.t-online.de/anmeld ... SPDemo.zip">http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip



Based on hpwNewLISP.nbp 1.06 with neoLISP.cmd neoscript-definition file.
Hans-Peter

HPW

#87
I uploaded a new demo-exe of the release demo to my plugin-page:



http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip">http://hpwickern.bei.t-online.de/anmeld ... SPDemo.zip">http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip



Based on hpwNewLISP.nbp 1.08 with new developed hpwColorMemo-plugin  for syntax-highlighting of lsp-files (and others/ see newlisp.cfg).
Hans-Peter

HPW

#88
I uploaded a new demo-exe of the release demo to my plugin-page:



http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip">http://hpwickern.bei.t-online.de/anmeld ... SPDemo.zip">http://hpwickern.bei.t-online.de/anmeldung/html1/neobook/hpwNewLISPDemo.zip



Based on hpwNewLISP.nbp 1.08 with hpwColorMemo 1.01 now supports paranthesis balancing of ( [ {  ... } ] ) via Key-shortcut CTRL-B.
Hans-Peter

HPW

#89
I uploaded the last demo-exe of the release demo to the neobook resource site:



http://www.software-zone.com/neosoft/index.php?s=f90faba8d6b776588e3b7eacd46d3a1f&act=SF&f=24">http://www.software-zone.com/neosoft/in ... ct=SF&f=24">http://www.software-zone.com/neosoft/index.php?s=f90faba8d6b776588e3b7eacd46d3a1f&act=SF&f=24



This will save space for the plugin-pages.
Hans-Peter