Print Page | Close Window

LoadCommandBars doesn’t load from .INI

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2321
Printed Date: 10 November 2025 at 3:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadCommandBars doesn’t load from .INI
Posted By: Barto
Subject: LoadCommandBars doesn’t load from .INI
Date 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...




Replies:
Posted By: gteet
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net