|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Killaw aka Sensi
|
Aug 6, 2003 - 8:45 PM
|
hello Sergiy, i’m trying to implement Prof-uis into my old Gnucleus (http://gnucleus.sourceforge.net via CVS), and i have several problems with that:
first i have problem with registry, i have basically try to cut and paste from your MDI sample but it works only the first time and make the app crash if i try to start it again:
SetRegistryKey( _T("Gnucleus") ); ASSERT( m_pszRegistryKey != NULL ); if( m_pszProfileName != NULL ) free( (void*)m_pszProfileName ); m_pszProfileName = _tcsdup( _T("Gnucleus") ); // Don’t work twice! ASSERT( m_pszProfileName != NULL ); //
for the context menus i have replaced my old BCmenu class:
CExtPopupMenuWnd * pPopup = new CExtPopupMenuWnd; VERIFY( pPopup->LoadMenu( GetSafeHwnd(), IDR_SHARE_RCLICK ) );
the menu load and is displayed but all items are disabled !
btw im a real newbie...
thank you in advance and please continue your great work.
|
|
Sergiy Lavrynenko
|
Aug 7, 2003 - 1:59 AM
|
Hi,
I’m ready to help you, but the propblem with _tcsdup and m_pszRegistryKey is strange. I need to see your test or real project to help you.
The menus and toolbars are using command descriptions that stored in the global command manager (g_CmdManager pointer). Your should register the commands of IDR_SHARE_RCLICK menu before use it:
g_CmdManager -> UpdateFromMenu ( your profile name, IDR_SHARE_RCLICK );
You can find many samples of using UpdateFromMenu in my code.
Best regards, Sergiy.
|
|
Killaw aka Sensi
|
Aug 11, 2003 - 1:22 PM
|
i had problems with the email you give me (undeliverable mail), but you should have received my test project via foss@fossware.com, thank you!
Best regards, Killaw a/k/a Sensi
|
|
Sergiy Lavrynenko
|
Aug 12, 2003 - 3:52 AM
|
Hi,
I have sent you a letter with your project improvements attached in a ZIP file.
Best regards, Sergiy.
|
|