Application doesn't start after upgrading to 18.6? |
Post Reply |
Author | |
hakoar
Groupie Joined: 06 August 2008 Location: Finland Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 06 November 2018 at 9:49am |
My application (SDI tabbed view, 64-bit statically compiled) doesn't anymore start after compiling against TP 18.6? I have no problems when I use earlier version 18.5. My app hasn't changed for a long time. |
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
I reported a problem to CodeJock after v18.6 was released. When using static linking, some application resources are not loading correctly, which is what I suspect is happening here.
Was told that they're looking into the problem, but not sure on the status of that investigation. My solution for the time being was to merge important v18.6 fixes into the v18.5 code base.
|
|
astoyan
Admin Group Joined: 24 August 2013 Status: Offline Points: 304 |
Post Options
Thanks(0)
|
As a temporary workaround you can remove or comment the following below piece of code in Source\Common\res\Resource-Neutral.rc and re-build ToolkitPro: #ifndef _AFXDLL #include <afxctl.rc> #include <afxdb.rc> #include <afxolecl.rc> #include <afxolesv.rc> #include <afxprint.rc> #include <afxres.rc> #include "Common/res/mfc/indicate.rc" #include "Common/res/mfc/prompts.rc" #endif //_AFXDLL Please confirm it fixes the problem. Regards, Alexander
|
|
TomPP
Groupie Joined: 17 November 2014 Location: Germany Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Generally works, but not when _XTP_RESOURCE_LANGUAGE is defined. Then you have to uncomment the same lines in the corresponding Resource_xx.rc file too.
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Is this related to the errors:
and so on, when compiling with static resources? |
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
TomPP
Groupie Joined: 17 November 2014 Location: Germany Status: Offline Points: 20 |
Post Options
Thanks(0)
|
I never had these errors with v18.6.0
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
OK but it is maybe because you never hit the language neutral resources?
But it is clear that the bitmaps referred to in the files does not exist on the disk?
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
TomPP
Groupie Joined: 17 November 2014 Location: Germany Status: Offline Points: 20 |
Post Options
Thanks(0)
|
With the changes above there is no difference when compiling with static or dynamic resources, both are fine. And the files you are missing are on disk.
|
|
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 |