Search found 16 matches
- Fri Dec 16, 2011 4:57 pm
- Forum: newLISP in the real world
- Topic: ODBC on Access db
- Replies: 0
- Views: 2327
ODBC on Access db
(set 'sourcedir (append (env "USERPROFILE") "\\Desktop\\Newlisp Access")) (load (append sourcedir "\\odbc.lsp")) (if (not (ODBC:connect (append sourcedir "\\fake.accdb") "" "")) (println "not connected..") (println "connected..")) Output: "C:\\Documents and Settings\\dm\\Desktop\\Newlisp Access" (l...
- Thu Dec 15, 2011 9:22 pm
- Forum: newLISP in the real world
- Topic: Command line: passing open arg ?
- Replies: 3
- Views: 1737
Re: Command line: passing open arg ?
Very cool. Thank you!
- Thu Dec 15, 2011 4:12 pm
- Forum: newLISP in the real world
- Topic: Command line: passing open arg ?
- Replies: 3
- Views: 1737
Re: Command line: passing open arg ?
I see I need to link it into an exe, then I can pass cmd line args. Thanks.
- Wed Dec 14, 2011 9:35 pm
- Forum: newLISP in the real world
- Topic: Command line: passing open arg ?
- Replies: 3
- Views: 1737
Command line: passing open arg ?
I'm running a single program in newlisp and want to pass an argument:
newlisp dl.lsp '123456'
I doesn't seem like newlisp accepts openargs. Did I miss something?
I suppose I could write it to a text file and have the program read the text file to retrieve the info :(
newlisp dl.lsp '123456'
I doesn't seem like newlisp accepts openargs. Did I miss something?
I suppose I could write it to a text file and have the program read the text file to retrieve the info :(
- Wed Dec 14, 2011 5:01 pm
- Forum: newLISP in the real world
- Topic: Lisp Manual and reference in PDF?
- Replies: 2
- Views: 1647
Re: Lisp Manual and reference in PDF?
I saved the Html web page, opened it in Ms Word then saved it as a Pdf.
I could mail it to you if you don't have Word.
I could mail it to you if you don't have Word.
- Tue Dec 13, 2011 8:19 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
A different option would be to run newlisp.exe with the socket code loaded and use SendMessage API from within the newlisp program to notify my main program when data is complete.
- Tue Dec 13, 2011 6:32 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
Ok, wait. I think I see what's going on. The example you are giving is how to register a callback in the dll from lisp. What I am wanting to do is register a callback in the dll from Vba/Vb6. So there is a hook in the dll to register a callback but there seems to be no way to callback into Vb becaus...
- Tue Dec 13, 2011 6:20 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
Yes, I think that's what I need and I saw this code in the manual earlier.. but I still don't understand how I'd hook this up in my code. I have: Public Declare Function NewlispEval Lib "NewLisp" Alias "newlispEvalStr" (ByVal LExpr As String) As Long so I would also declare: Public Declare Function ...
- Tue Dec 13, 2011 4:40 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
I think you are missing my point. I was using the Webbrowser.DownloadComplete event as example of an asynchronous event. I can load and call the newlisp.dll all I want and it works and I am happy with that. What I was wondering was if it's possible to assign newlisp.dll a callback: Sub Form_Open() N...
- Tue Dec 13, 2011 5:34 am
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
To get you right: you want to handle all network stuff with newlisp and have it inform the VB app an changed data ? -- That said: If you set up newlisp to wait for events, your form will do nothing - except you do that in a thread - which complicates the thing even more. Example: I use an Internet ...
- Mon Dec 12, 2011 9:49 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
Oh, ok. In Vb, when I add a reference to a DLL I can see the interfaces in the object viewer. If I add newlisp.dll there is one function: NewlispEval. Some DLL have events that can be hooked within the editor. A fictional socket interface would have a DataReceived event: Private Sub Socket1_DataRece...
- Mon Dec 12, 2011 6:34 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Re: Socket Callback into Vb
I should mention this is Vba/Vb6, not .net
Thanks.
Thanks.
- Mon Dec 12, 2011 5:59 pm
- Forum: newLISP in the real world
- Topic: Socket Callback into Vb
- Replies: 12
- Views: 4500
Socket Callback into Vb
I'd like to use net-listen to signal a data received event into my Vb application. I'm using the newlisp.dll and didn't want to poll the port. Is this possible?
Thanks.
Thanks.
- Sun Dec 11, 2011 8:10 am
- Forum: newLISP in the real world
- Topic: crypto.lsp sha256
- Replies: 4
- Views: 2343
Re: crypto.lsp sha256
Aha. I see thank you for the help!
- Fri Dec 09, 2011 9:46 pm
- Forum: newLISP in the real world
- Topic: 2D game engine with newLisp
- Replies: 29
- Views: 12622
Re: 2D game engine with newLisp
Maybe you can recreate for HTML5 Canvas?
http://www.newlisp.org/code/modules/canvas.lsp.html
http://easeljs.com/
http://paperjs.org/
http://box2d-js.sourceforge.net/
Though it's 3d, this might inspire:
http://mrdoob.com/129/Voxels
(click the top left frame that says Voxels)
http://www.newlisp.org/code/modules/canvas.lsp.html
http://easeljs.com/
http://paperjs.org/
http://box2d-js.sourceforge.net/
Though it's 3d, this might inspire:
http://mrdoob.com/129/Voxels
(click the top left frame that says Voxels)
- Fri Dec 09, 2011 8:44 pm
- Forum: newLISP in the real world
- Topic: crypto.lsp sha256
- Replies: 4
- Views: 2343
crypto.lsp sha256
I'm trying to port over my php code dealing with amazon web service to newlisp: $signature = base64_encode(hash_hmac("sha256",$request,SECRET_ACCESS_KEY,TRUE)); Looking at http://www.newlisp.org/code/modules/crypto.lsp.html there doesn't seem to be sha256. Reading http://newlispfanclub.alh.net/forum...