D语言中国主页  D语言编辑器SciTE4D   DWin库 D语言官方网站                                             
D语言编译器1.x最新版 OpenSource   Tango   webnews Wiki                                             

查看完整版本: D语言Gui库harmonia介绍与安装

yidabu 2007-5-26 16:56

D语言Gui库harmonia介绍与安装

D语言Gui库harmonia介绍与安装知识若不分享 实在没有意义 http://www.d-programming-language-china.org 20070526点击下面网址查看原文:http://www.d-programming-language-china.orgtag:GUI设计,d language doc中文,D language编程D语言Gui库harmonia下载        下载网址:        http://harmonia.terrainformatica.com        比如 D语言论坛 http://www.d-programming-language-china.org 下载的是:        The most recent available snapshot :        http://harmonia.terrainformatica.com/Harmonia.source.119.zipSetup a usable workspace        If you have no Visual Studio, I recommend you to download the build tool.        http://www.dsource.org/projects/build/        Change the name to "build" and copy it to D:\dmd\bin.        Copy the Harmonia folder to any location on your disc (e.g.D:\dmd\src\other).        Now you need to change (D:\dmd\bin) sc.ini, specifically the DFLAGS line.        Add the folder which includes harmonia e.g.        QUOTE:                                DFLAGS="-I%@P%\..\src\phobos;C:\dmd\src\other"                Copy ..\imageio\imageio.lib to ..\dmd\lib\.        See also Something wrong in the setup page for tips.        http://www.terrainformatica.com/bb/viewtopic.php?t=132&sid=beaaf9845534a5f244cf7d4849585107( 本文出处: http://www.d-programming-language-china.org )build harmonia On Win32        Three methods:        Command line with make file: type built.bat and press Enter. It will call make.exe with release.mak makefile and build Harmonia and her samples. (To build imageio.lib use imageio.bat)        Command line with build tool: type build yourSrc.d and press enter (check setup page for details about using build).        http://harmonia.terrainformatica.com/pmwiki.php?n=Harmonia.Setup        IDE: Open smile.dsw file in Microsoft Visual Studio 6, select Release configuration and press F7.        D语言论坛 http://www.d-programming-language-china.org 按:( 本文出处: http://www.d-programming-language-china.org )        1 harmonia示例程序的编译:        1.1 打开build-harmonia.bat        把c:\dmd\bin\dmd.exe替换为实际路径( 本文出处: http://www.d-programming-language-china.org )        1.2 打开release.mak        同上操作。        1.3 然后运行bat文件就可以自动编译        编译好后会自动打开example程序。        同样原理,修改build-harmonia-debug.bat和debug.mak中的dmd路径,以编译debug版本。        2 imageio的编译        1.1 打开imageio\build.bat        修改make的路径为实际路径。        1.2 打开imageio\makefile        修改-I\dmd\src\phobos\etc\c\zlib为实际路径( 本文出处: http://www.d-programming-language-china.org )        1.3 运行build.bat开始编译Harmonia Debugging        I am debugging Harmonia in Microsoft Visual Studio 6.        Open smile.dsw file in VS 6, select Debug configuration and press F5.        D debugging in VS 6 is not perfect due to ABI differences of D and C++ but basic debugging actions are there.        To debug templated code I recommend to create it first as plain one, debug and only then "templatise" it.        See http://www.prowiki.org/wiki4d/wiki.cgi?EditorSupport Wiki4D page for more information on D IDE support and debugging.( 本文出处: http://www.d-programming-language-china.org )        If you want to use Visual Studio 2003 then you may find D IDE plugin for Visual Studio.net 2003 useful.        http://reverie.xrea.jp/files/VSpluginD.zip编译示示例程序库harmonia        下面是harmonia samples中的示例程序hello1.d:        [Copy to clipboard] [ - ]CODE:                                module samples.hello1;                                // HTML Hello World.                                import harmonia.ui.application;                import harmonia.ui.window;                import harmonia.html.view;                                                                // HTML behavior can be attached to any container                // This time to the window.                alias HtmlPanelT!(Window) HtmlWindow;                                void HelloWorldStart()                {                    HtmlWindow w = new HtmlWindow;                    w.html =                     "<HTML back-color='edit info'                            text-align=center                            vertical-align=middle>Hello World!</HTML>";                    w.state = Window.STATE.NORMAL;                }                                static this()                {                    Application.onStart = &HelloWorldStart;                }                经D语言论坛 http://www.d-programming-language-china.org 测试,只能用build.exe编译:        QUOTE:                                @echo off                bud hello1.d -exec -gui:4.0 -full -release -inline -O -I..\..        ( lastupdate:20070526 最新文章请访问http://www.d-programming-language-china.org )关于一大步成功社区:yidabu提倡在交流中学习,在分享中提高收集感兴趣的知识,写下心得,通过网络与别人一起分享理解一点就实践一步,收获什么就分享什么,成功就是这样一点点一步步累积起来的网络只是一个工具,只有自己身心提高才是实实在在的。d-programming-language-china.org为大家提供一个学习交流各种知识的平台
页: [1]
查看完整版本: D语言Gui库harmonia介绍与安装