If I open a file using "openFile" from the IO module
(x <- openFile "foo.txt" ReadMode)
and convert it to a String via hGetContents
(y <- hGetContents x)
and finally try to print the file on the screen
(putStrLn y)
I'll get a strange result if the file contains the character 1A-hexadecimal
(
Hi Patrick.
This is probably because you need to build HDirect in two stages - once
without typelibrary support, and once with. Here is the process I used to
build HDirect 0.17 with ghc 4.08 under NT (much is probably irrelevant as I
think some of these problems have been sorted by Sigbjorne):
Hi Patrick.
This is probably because you need to build HDirect in two stages - once
without typelibrary support, and once with. Here is the process I used to
build HDirect 0.17 with ghc 4.08 under NT (much is probably irrelevant as I
think some of these problems have been sorted by Sigbjorne):
Is the posix library (-package posix) supposed to be supported on
Windows? If not (as I expect to have confirmed), what are the
alternatives for process control on Windows?
Dean
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.hask
I am trying to build a Haskell COM component with HDirect (from
http://www.galconn.com/~sof/hdirect-0.18-src.tar.gz) and "ghc 5.02". I have
problems generating the type library: it is simply not created. Even the
comserv example is not working because of the same problem. Could that be a
bug in t
At 2001-10-10 01:19, I wrote:
>foreign import "foo" raw_foo :: Ptr () -> IO (Ptr ());
>
>foo :: Ptr SomeLinkedList -> IO (ConstPtr Char);
>foo = importFunction raw_foo;
Actually I don't need to convert the pointers, do I? If I have (Storable
SomeLinkedList), I can just declare
At 2001-09-23 23:54, I wrote:
>As you point out, there are restrictions
>on just what existing C functions you can bind to. If your function looks
>like this:
>
> const char* foo (struct SomeLinkedList*);
>
>...you have no choice but to write 'impedance-matching' code for that
>function.