Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Settings new resource.

Posted on 2000-03-12
3
Medium Priority
?
184 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 30 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

704 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