Using putStrLn/printf from DLL in GUI application
simonmarhaskell at gmail.com
Mon Dec 4 05:10:30 EST 2006
Krasimir Angelov wrote:
> How many times you tried to use putStrLn from Haskell or printf from C
> when you are building DLL loaded in GUI application?
> This simply doesn't work because by default the GUI application
> doesn't have console window. The solution is to use
> allocConsole/freeConsole from the attached library.
> do allocConsole
> putStrLn "Hello, world!"
> This could be a good addition to the standard Win32 library if someone
> take care to integrate it.
So that we don't lose this: will someone propose a patch to packages/Win32?
More information about the Libraries