
Hello. I'm writing an wxHaskell application. Everything is ok, but now I need a separate folder for icons, bitmaps, and so on, from where they are loaded at runtime. How can I compile resources, and link them into my executable to provide for users single .exe file with resource section inside it? -- With best regards, Konstantin

On Thu, Nov 12, 2009 at 11:12 AM, Konstantin Vladimirov
Hello.
I'm writing an wxHaskell application. Everything is ok, but now I need a separate folder for icons, bitmaps, and so on, from where they are loaded at runtime. How can I compile resources, and link them into my executable to provide for users single .exe file with resource section inside it?
+1 ! I would also like to know how one can do it with gtk2hs.

On Thu, 2009-11-12 at 11:52 +0100, David Virebayre wrote:
On Thu, Nov 12, 2009 at 11:12 AM, Konstantin Vladimirov
wrote: Hello.
I'm writing an wxHaskell application. Everything is ok, but now I need a separate folder for icons, bitmaps, and so on, from where they are loaded at runtime. How can I compile resources, and link them into my executable to provide for users single .exe file with resource section inside it?
+1 !
I would also like to know how one can do it with gtk2hs.
I just keep them as separate data files and use Cabal to install them and to find them at runtime. http://haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#p... Duncan

Hello Konstantin, Thursday, November 12, 2009, 1:12:35 PM, you wrote:
I'm writing an wxHaskell application. Everything is ok, but now I need a separate folder for icons, bitmaps, and so on, from where they are loaded at runtime. How can I compile resources, and link them into my executable to provide for users single .exe file with resource section inside it?
using win api, of course. look into SVN http://freearc.org:8080/freearc/trunk/ for example of how to add reources to executable (Unarc/makefile and compile.cmd). note that my program doesn't load anything from resources -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (4)
-
Bulat Ziganshin
-
David Virebayre
-
Duncan Coutts
-
Konstantin Vladimirov