Re: [Haskell-cafe] FFI and Excel VBA

2007-06-20 Thread Cyril Schmidt
A while ago I built a Haskell DLL that had to be invoked from Excel. For some reason (I do not remember exactly why) it did not work directly, so I wrote a small wrapper DLL in C++ that invoked Haskell functions. The wrapper DLL was invoked by Excel via COM. As regards your example, the only thin

[Haskell-cafe] CUFP website

2007-05-14 Thread Cyril Schmidt
I noticed recently that the website of CUFP conference (Commercial Uses of Function Programming), which used to be at http://www.galois.com/cufp, is not accessible anymore. Does anybody know where it moved? Cyril ___ Haskell-Cafe mailing list Haskell-C

[Haskell-cafe] Re: Haskell DLL crashes Excel

2006-09-29 Thread Cyril Schmidt
A few people recently asked how to pass a string between a Haskell DLL and Excel. I attach the proof-of-concept code that I wrote a while ago; it demonstrates passing a string from Excel to Haskell and the other way. Most of the C++ code is taken from code examples at http://msdn.microsoft.com

[Haskell-cafe] Re: Creating DLLs with GHC

2006-09-27 Thread Cyril Schmidt
Matthew, As regards the symbols that end with _closure, I believe you can resolve them by adding -package parsec to the ghc command line (as far as I can see, all the symbols you list come from the parsec package). I don't know, though, what to do with the undefined symbols from matrixstack. You

[Haskell-cafe] Re: Haskell DLL crashes Excel

2006-09-25 Thread Cyril Schmidt
Nikunj, The symptoms that you describe hint at some incorrect pointer handling. I believe the culprit is that pesky BSTR. I will try to dig up the code that I wrote a while ago to pass a BSTR to Haskell. Meanwhile, another hint. The GHC FAQ 1.4.1 says: "For utterly horrible reasons, programs t

[Haskell-cafe] Re: Haskel DLL crashes Excel

2006-09-22 Thread Cyril Schmidt
Andreas Marth wrote: > As you might now already know I try to let VBA call Haskell via a DLL. I had to do this a while ago; the best I could come up with was: 1. Make a Haskell DLL that exports plain C-style interface. 2. With Visual Studio, make a COM DLL that exports the interfaces to be used