digitalmars.D.dwt - problem with upx
- kenshiro55 (7/7) Jul 31 2008 After the compression of ControlExample with upx:
- kenshiro55 (4/14) Jul 31 2008 I did some tests and it think it's another manifest problem.
- Frank Benoit (5/27) Aug 01 2008 I don't know UPX well. Perhaps it is bug in UPX?
- kenshiro55 (5/33) Aug 01 2008 I found the problem.
- Frank Benoit (2/39) Aug 01 2008 Does the theming then work properly? (are buttons rounded?)
- kenshiro55 (9/51) Aug 01 2008 Yes, there is no problem with the theming.
After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1
Jul 31 2008
kenshiro55 Wrote:After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1I did some tests and it think it's another manifest problem. If I compile without dwt.res (remove the line buildflags+= -L/rc:..\dwt in dsss.conf), the exe compressed with upx seems ok in console mode. But then I found another problem. If I compile in gui mode without dwt.res, I can start the application from the console but not from the explorer.
Jul 31 2008
kenshiro55 schrieb:kenshiro55 Wrote:I don't know UPX well. Perhaps it is bug in UPX? Wikipedia has a list of alternatives: http://en.wikipedia.org/wiki/Executable_compression ASPack was used in the past for poseidon, i think.After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1I did some tests and it think it's another manifest problem. If I compile without dwt.res (remove the line buildflags+= -L/rc:..\dwt in dsss.conf), the exe compressed with upx seems ok in console mode. But then I found another problem. If I compile in gui mode without dwt.res, I can start the application from the console but not from the explorer.
Aug 01 2008
Frank Benoit Wrote:kenshiro55 schrieb:I found the problem. If I replace this line 2 24 "dwt.exe.manifest" by this line 1 24 "dwt.exe.manifest" in my dwt.rc and recompile, the upx version is ok.kenshiro55 Wrote:I don't know UPX well. Perhaps it is bug in UPX? Wikipedia has a list of alternatives: http://en.wikipedia.org/wiki/Executable_compression ASPack was used in the past for poseidon, i think.After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1I did some tests and it think it's another manifest problem. If I compile without dwt.res (remove the line buildflags+= -L/rc:..\dwt in dsss.conf), the exe compressed with upx seems ok in console mode. But then I found another problem. If I compile in gui mode without dwt.res, I can start the application from the console but not from the explorer.
Aug 01 2008
kenshiro55 schrieb:Frank Benoit Wrote:Does the theming then work properly? (are buttons rounded?)kenshiro55 schrieb:I found the problem. If I replace this line 2 24 "dwt.exe.manifest" by this line 1 24 "dwt.exe.manifest" in my dwt.rc and recompile, the upx version is ok.kenshiro55 Wrote:I don't know UPX well. Perhaps it is bug in UPX? Wikipedia has a list of alternatives: http://en.wikipedia.org/wiki/Executable_compression ASPack was used in the past for poseidon, i think.After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1I did some tests and it think it's another manifest problem. If I compile without dwt.res (remove the line buildflags+= -L/rc:..\dwt in dsss.conf), the exe compressed with upx seems ok in console mode. But then I found another problem. If I compile in gui mode without dwt.res, I can start the application from the console but not from the explorer.
Aug 01 2008
Frank Benoit Wrote:kenshiro55 schrieb:Yes, there is no problem with the theming. I found the solution on msdn: http://blogs.msdn.com/cheller/archive/2006/08/24/718757.aspx Yes, there is no problem with the theming. I found the solution on msdn: http://blogs.msdn.com/cheller/archive/2006/08/24/718757.aspx #define RT_MANIFEST 24 #define APP_MANIFEST 1 APP_MANIFEST RT_MANIFEST ExeName.exe.manifest The line above means: take the contents of ExeName.exe.manifest, and include it as a resource of type RT_MANIFEST, whose identifier is APP_MANIFEST. (The value of the manifest resource for an executable should be 1.)Frank Benoit Wrote:Does the theming then work properly? (are buttons rounded?)kenshiro55 schrieb:I found the problem. If I replace this line 2 24 "dwt.exe.manifest" by this line 1 24 "dwt.exe.manifest" in my dwt.rc and recompile, the upx version is ok.kenshiro55 Wrote:I don't know UPX well. Perhaps it is bug in UPX? Wikipedia has a list of alternatives: http://en.wikipedia.org/wiki/Executable_compression ASPack was used in the past for poseidon, i think.After the compression of ControlExample with upx: - icons are not displayed on tabs: Button, CoolBar, Table, ToolBar, Tree - but icons are displayed on tabs: ExpandBar, Label, Menu. It was working before the fix of these bugs: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1414 http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.dwt&article_id=1415 Env: dmd 1.0.33, tango 0.99.7, Windows DWT 3.4 1I did some tests and it think it's another manifest problem. If I compile without dwt.res (remove the line buildflags+= -L/rc:..\dwt in dsss.conf), the exe compressed with upx seems ok in console mode. But then I found another problem. If I compile in gui mode without dwt.res, I can start the application from the console but not from the explorer.
Aug 01 2008