Solved

Settings new resource.

Posted on 2000-03-12
3
179 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 42
maxBlock challenge 30 128
has22 challenge 11 93
abstract class with all non abstract mentods 6 76
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ā€¦
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

776 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