Solved

Settings new resource.

Posted on 2000-03-12
3
181 Views
Last Modified: 2013-11-20
In my project to adopt it it to europian languages,i am using dll of that respective languages,i.e. i am using all same resources ,with ids & evry thing ,only caption in that perticulat language.
I am loading DLL with LoadLibrary,
Setting those resouces with AfxSetResourceHandle.
Dll get loaded ,all dialog boxes works, but that main menu bar doesnt changle ,i used DrawMenuBar to redraw menubat,it doesn't work

thanks.
0
Comment
Question by:jaydeep
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Expert Comment

by:VinExpert
ID: 2610738
Hi,

Just give it a try...

U get the menu resource handle in a CMenu.

Then use AfxGetMainWnd()->SetMenu(...);
And then use DrawMenu();

Try it out.

VinExpert
0
 

Accepted Solution

by:
TG earned 15 total points
ID: 2611487
Hi,
I thing it's work properly, but the problem is that you did not change Handle to Menu in the MainFrame, so you see old one menu.

If you want to see menu on the correspond language you must change menu handle in Mainframe with that one that you load from the new DLL.

Also you need to change all menu handles in all DocTemplates that you have in the application.

Do not forget to send message to active child that menu is changed( if this is a MDI ).

TG
0
 

Author Comment

by:jaydeep
ID: 2614757
Hi
i have tried forst option of setmenu  earlier it doesn't work.
Actually GetMenu returns the present active menu, so it return menu of view ,or you can say child.but don't know why it's not working.

Another question when we load resurces from DLL,  have copies same .rc file of apllication  & copied it to DLL .rc & i have just changed the captions.

can you suggest some other solution

0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 150
sumDigits challenge 9 178
post4 challenge 28 122
abstract class with all non abstract mentods 6 87
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question