For those interested (you should consider adding this to the wiki), if you 
would like your wxApp to launch
under windows like any standard windows app, without the command console 
(prompt) window also appearing
this can be achieved with ghc (in effect you need to instruct the linker to use 
the WinMain entry point) this can be done by passing -mwindows to gcc (used in 
the ghc link phase) as follows ...


>ghc -o HelloWorld.o -fglasgow-exts -c HelloWorld.hs
>ghc -optl-mwindows -o HelloWorld.exe HelloWorld.o -package wxcore

NB: you can do the above in one step as well.

now double click HelloWorld.exe and it will launch like a standard windows app 
(no DOS box).

to work HelloWorld must contain a Main module, will also work with ghc -main-is 
option

_________________________________________________________________
Are you paid what you're worth? Find out: SEEK Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to