Thanks a lot for your solution! However, I've got two more problems:

1) When executing "make", I get an error message.

C:\...>make
/ghc/ghc-4.08.1/bin/ghc-4.08.1 -static -package lang -c BSTR.hs
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:141: stdlib.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:142: string.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:143: math.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:144: assert.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:145: errno.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:146: stdio.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:149: signal.h: No such file or directory
C:/ghc/ghc-4.08.1/lib/includes/Stg.h:153: unistd.h: No such file or directory
bstrPrim.h:4: windows.h: No such file or directory
make: *** [BSTR.o] Error 1

What's wrong? I suppose, it's something with the enviroment variables (e.g. path).
I also found these files in the cygwin path, but they seem to occur in different 
versions,
and I don't know which ones to take.

2) The test code in "Main.hs" calls freeBSTR, in order to free memory space, I suppose.
Isn't something like that also necessary in the uppercase example function (for usage 
within a DLL)?

Christian


Reply via email to