Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - LoadCommandBars doesn’t load from .INI
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadCommandBars doesn’t load from .INI

 Post Reply Post Reply
Author
Message
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Topic: LoadCommandBars doesn’t load from .INI
    Posted: 03 June 2005 at 9:28am

Although stated so in the comments, CXTPMDIFrameWnd::LoadCommandBars (and the called CXTPCommandBars::LoadOptions, ...) and CXTPDockingPaneLayout::Load() only load from registry when CWinApp::SetRegistryKey() has been set. If it hasn't been set (I want to write to .INI file instead), they fail with an assertion in CWinApp::GetRegistryKey.

I suggest that you add .INI file support in these functions for the next version (no big deal). In the meanwhile I will try a workaround here...

Back to Top
gteet View Drop Down
Newbie
Newbie


Joined: 01 April 2004
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gteet Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2006 at 12:36pm
This is a bigger deal than you think because earlier versions did support .INI files, which means if you're upgrading all of your users will lose their command bar options.  I'm trying to upgrade from 9.10 to 9.81 and will need this support added before I can fully make the switch.
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.078 seconds.