Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 31, 2008 problem with upx | ||||
---|---|---|---|---|
| ||||
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 |
August 01, 2008 Re: problem with upx | ||||
---|---|---|---|---|
| ||||
Posted in reply to kenshiro55 | 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 1
I 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.
|
August 01, 2008 Re: problem with upx | ||||
---|---|---|---|---|
| ||||
Posted in reply to kenshiro55 | kenshiro55 schrieb: > 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 1 > > I 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. 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. |
August 01, 2008 Re: problem with upx | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit Wrote:
> kenshiro55 schrieb:
> > 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 1
> >
> > I 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.
>
> 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.
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.
|
August 01, 2008 Re: problem with upx | ||||
---|---|---|---|---|
| ||||
Posted in reply to kenshiro55 | kenshiro55 schrieb:
> Frank Benoit Wrote:
>
>> kenshiro55 schrieb:
>>> 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 1
>>> I 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.
>> 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.
>
>
> 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.
>
>
>
Does the theming then work properly? (are buttons rounded?)
|
August 01, 2008 Re: problem with upx | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit Wrote: > kenshiro55 schrieb: > > Frank Benoit Wrote: > > > >> kenshiro55 schrieb: > >>> 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 1 > >>> I 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. > >> 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. > > > > > > 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. > > > > > > > > Does the theming then work properly? (are buttons rounded?) > > 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.) |
Copyright © 1999-2021 by the D Language Foundation