Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - UPX and XTP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

UPX and XTP

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: UPX and XTP
    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:

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2006 at 12:19pm

FYI: It works with PECompact. Didn't want to delete the post so that others can find this info.

Back to Top
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 2:30pm
Originally posted by ABuenger ABuenger wrote:

FYI: It works with PECompact. Didn't want to delete the post so that others can find this info.



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!
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2010 at 4:48am
API hooking does not like packing. I've seen the same problem with other packers.
PokerMemento - http://www.pokermemento.com/
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2010 at 9:05am
Originally posted by znakeeye znakeeye wrote:

API hooking does not like packing. I've seen the same problem with other packers.


PECompact works and does the same as UPX.

Codejock support
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2010 at 11:29am
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/
Back to Top
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2010 at 12:16pm
Interesting, thanks for the information everyone.

Does anyone from codejock have any details that they would like share?


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2010 at 4:55am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.