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

CXTPSingletonPointer between EXE and DLLs

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSingletonPointer between EXE and DLLs
    Posted: 27 September 2023 at 9:32am
I have an EXE file that loads some DLLs.

In the EXE file I define:
CXTPPaintManager::SetTheme(xtpThemeOffice2016);
XTPResourceImages()->SetHandle(_T("MyTheme.dll"), _T("Office2016PowerPointDarkGray.ini"));

when I at some point in the DLL calls:
CXTPPaintManagerColor crHyperlink;
crHyperlink.SetStandardValue(XTPIniColor(_T("GridControl"), _T("HyperLink"), RGB(0, 0, 255)));
it does not use the resources specified in the EXE?

It seems like the "global" CXTPSingletonPointer created in the SetHandle method is not the same used in XTPIniColor. How do I have a true singleton between my EXE and DLLs?
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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.