UPX and XTP |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Posted: 03 May 2006 at 11:11am |
If I use UPX to pack an EXE that is statically linked with the XTP library some controls have the wrong theme (docked panes, CommandBars, tab control) or to be more precise, they don't get skinned with the Office 2007 theme. To reproduce it please do the following quick steps with the GUI_Whidbey sample. Add #define _XTP_STATICLINK to the StdAfx.h Add #include "XTToolkitPro.rc" to GUI_Whidbey.rc2 Add XTPSkinManager()->LoadSkin (_T("Styles\\Office2007.cjstyles")); to the constructor of CMainFrame You can download UPX here: http://upx.sourceforge.net This is how it looks if the EXE is not packed:
And this is how it looks if the EXE is packed: |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
FYI: It works with PECompact. Didn't want to delete the post so that others can find this info. |
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
WE have run into the same problem with UPX and the skins. Does anyone else have any information regarding this? Or the reason why UPX is not compatible with the skins? Thanks! |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
API hooking does not like packing. I've seen the same problem with other packers.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
PECompact works and does the same as UPX. |
|
Codejock support
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
PECompact is not the same as UPX. If it was, then both would show the same result. Obviously.
Try looking at different packing options of UPX. The error lies in UPX, not in CJ code. For comparison, I had to consult the author of another packer to make it compatible with the CJ API-hooking. It's not like CJ will change their hooking engine at this point :P
|
|
PokerMemento - http://www.pokermemento.com/
|
|
IRMark
Groupie Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Interesting, thanks for the information everyone.
Does anyone from codejock have any details that they would like share? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes, afraid we can't do anything here - we need DLL Entry table to allow API hooks and such tools break it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |