Search found 12 matches

by neuwirthe
Wed Jun 25, 2008 10:33 pm
Forum: newLISP Graphics & Sound
Topic: MIDI controllers
Replies: 5
Views: 7142

MIDI controllers

Only today I found out about the MIDI stuff in guiserver, and I really like it. Currently only note and pitch bend seem to be supported. Are there plans to also implement controllers (technically, that is rather easy). It would allow to implement sounds from moving sound sources and other interestin...
by neuwirthe
Sun Sep 26, 2004 4:08 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

Here is VB.NET code working with h GCC compiled version. Public Class Form1 Inherits System.Windows.Forms.Form <DllImport("c:\newlisp\newlisp.dll", _ EntryPoint:="dllEvalStr", _ CharSet:=CharSet.Ansi, _ CallingConvention:=CallingConvention.StdCall)> _ Public Shared Function dllNewlispeval(ByVal txt ...
by neuwirthe
Sat Sep 25, 2004 9:58 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

I was using your VB.NET example as a starter. Have you done extensive testing with the BC compiled version? I fear that it might have the same problems lik the GCC version in a longer run. Therefore, I think it would be worthwhile to adapt the lstrCpy method to VB.NET also. but I have not found a wa...
by neuwirthe
Sat Sep 25, 2004 7:37 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

I just tried to adapt the WinAPI technique to the VB.NET example, and it does not work at all. I do not know VB.NET. Perhaps you can try to convert the VB6 technique to VB.NET? Maybe this takes care of the crashes in VB.NET
by neuwirthe
Sat Sep 25, 2004 7:01 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

Some more things: Strings in VB are rather difficult, there is a special type BSTR which has to be used in C programs to be called by VB, but support for this type seems only to be supplied for Microsoft compilers. Therefore I am using a workaround calling WinAPI functions converting C's char * to V...
by neuwirthe
Sat Sep 25, 2004 6:37 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

is there some repository where I can put examples? I now have VB6 and Excel examples as zip files. About LoadNewLISP: Your code works with a fixed path to newlisp. LoadNewLISP in the new examples will pompt you for its location when it is not found immediately. I also think that as long as newlisp.d...
by neuwirthe
Thu Sep 16, 2004 3:13 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

Problem solved

Thats the way it works in VBA: Create a module in Excel's VBA editor. Paste the code below. Put the cursor inside the sub test Press F5 Now we have NewLISP in Excel!!!!!!!!!!!!!!!!!!!!!!!!!!!! More code to follow Public Declare Function dllEvalNewLISP Lib "newlisp" Alias "newlispEvalStr" ( _ ByVal L...
by neuwirthe
Thu Sep 16, 2004 1:21 pm
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

http://support.microsoft.com/default.aspx?scid=kb;en-us;187912 has a description of how to pass strings between VB6 (also applies to VBA) and a C dll. I think this mandates a 2 step process. Evaluate in the DLL and assign to a temporary buffer. Let VB call a function giving the size of the string in...
by neuwirthe
Thu Sep 16, 2004 11:14 am
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

I do not have BCC, and i had the same problem when I tried your
VB.NET example.
by neuwirthe
Thu Sep 16, 2004 11:02 am
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

Further information, no solution yet

This is getting really messy. The problem is that VB and VBA cannot handle char * as return values, strings work differently in VB. I am investigating if it can be done. I read the mentioned thread. VB and VBA use stdcall, that is not the issue. I added a test function returning integers declared wi...
by neuwirthe
Thu Sep 16, 2004 7:24 am
Forum: newLISP and the O.S.
Topic: DLL does not work from VBA
Replies: 27
Views: 30180

DLL does not work from VBA

I tried do use the DLL in Excel through VBA. It does not work, it crashes. I have used similar code for other DLLs, so I assume the signature of newlispEvalStr is not right. Loading works, I get a handle on the DLL (there is code to check that!) Public Declare Function EvalNewLISP Lib "newlisp" Alia...
by neuwirthe
Wed Sep 15, 2004 2:34 pm
Forum: newLISP and the O.S.
Topic: minibug witn win32 installation?
Replies: 1
Views: 3579

minibug witn win32 installation?

I installed newlisp in c:\mathstat\newlisp, and now
Help -> Manual and Reference does not work because it still tries
to find the files in c:\newlisp