The support libraries for HaskellDirect provide
functions for converting between BSTRs and Haskell'
String (Com.marshallBSTR, Com.unmarshallBSTR) --
http://www.dcs.gla.ac.uk/fp/software/hdirect/user-32.html
has the overview. However, the binaries available for
that library is for ghc-4.045, so
Thank you for your detailed answer - it's really great, it works! :-)
However, I have got one more problem: the function I want to call from VBA is of
type String - String - String
Is there a (simple) method to convert VBA strings (BSTR) to Haskell's [Char] and
vice versa?
By the way: Is it
TECTED]
Subject: Re: Using Haskell code in VBA (MS Access)?
Thank you for your answer. However, unfortunately up to now I'm so far
as before (means: I still don't know how to build a DLL from Haskell
code which can be called from VBA).
Is your Win expert back? Perhaps you have got
| What is the best way to call functions implemented in Haskell from
| Visual Basic for Applications (MS Access)?
| I suppose I will have to build a DLL with GHC + Cygwin, but
| up to now I
| didn't manage to do so. I there a "How to"?
This isn't directly what you wanted, but: I packaged up