helloworld.exe executable size is 2.45 MB
yidabu
yidabu.nospam at gmail.com
Sun Mar 2 20:12:03 PST 2008
build dwt.lib with -release,
then build helloworld.exe with DSSS, executable size is 2.45 MB
DSSS may increase the size, but failed build with DMD e.g. :
>dmd helloworld.d -release -inline -O -L/SUBSYSTEM:windows:5
D:\d\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi/SUBSYSTEM:windows:
5+tango-user-dmd.lib+dwt.lib+dfl.lib+dwin.lib+ydb.lib+pcre.lib+user32.lib+kernel
32.lib;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
D:\d\dmd\bin\..\tango\lib\dwt.lib(Accessible)
Error 42: Symbol Undefined _LresultFromObject at 12
D:\d\dmd\bin\..\tango\lib\dwt.lib(Accessible)
Error 42: Symbol Undefined _SysAllocString at 4
D:\d\dmd\bin\..\tango\lib\dwt.lib(Accessible)
Error 42: Symbol Undefined _SysStringByteLen at 4
D:\d\dmd\bin\..\tango\lib\dwt.lib(COM)
Error 42: Symbol Undefined _SysFreeString at 4
D:\d\dmd\bin\..\tango\lib\dwt.lib(GC)
Error 42: Symbol Undefined _AlphaBlend at 44
D:\d\dmd\bin\..\tango\lib\dwt.lib(GC)
Error 42: Symbol Undefined _TransparentBlt at 44
D:\d\dmd\bin\..\tango\lib\dwt.lib(GC)
Error 42: Symbol Undefined _GradientFill at 24
D:\d\dmd\bin\..\tango\lib\dwt.lib(Accessible)
Error 42: Symbol Undefined _CreateStdAccessibleObject at 16
D:\d\dmd\bin\..\tango\lib\dwt.lib(Device)
Error 42: Symbol Undefined _ScriptGetProperties at 8
D:\d\dmd\bin\..\tango\lib\dwt.lib(OleClientSite)
Error 42: Symbol Undefined _VariantClear at 4
D:\d\dmd\bin\..\tango\lib\dwt.lib(OleClientSite)
Error 42: Symbol Undefined _OleCreatePropertyFrame at 44
D:\d\dmd\bin\..\tango\lib\dwt.lib(Variant)
Error 42: Symbol Undefined _VariantChangeType at 16
D:\d\dmd\bin\..\tango\lib\dwt.lib(Variant)
Error 42: Symbol Undefined _VariantInit at 4
--- errorlevel 13
On Mon, 03 Mar 2008 10:41:47 +0800
davidl <davidl at 126.com> wrote:
> 在 Mon, 03 Mar 2008 08:04:45 +0800,yidabu <yidabu.nospam at gmail.com> 写道:
>
> > import dwt.widgets.Display;
> > import dwt.widgets.Shell;
> > void main ()
> > {
> > Display display = new Display;
> > Shell shell = new Shell(display);
> > shell.setText = "Hello DWT World";
> > shell.open;
> > while (!shell.isDisposed)
> > if (!display.readAndDispatch)
> > display.sleep;
> > display.dispose;
> > }
>
>
> how's your dwt-win built?
> do you build dwt-win with -release?
>
> --
> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
--
yidabu <yidabu.nospam at gmail.com>
SciTE4D Text Editor for D Programming Language:
http://scite4d.chinese-blog.org/
DWin library for D language, Windows COM support with Tango:
http://dwin.chinese-blog.org
More information about the Digitalmars-d-dwt
mailing list