|
We have non-unicode application where it has to support different language strings like korean, chinese etc.
I had installed the required language packages. I have to change the language dynamically through a menu item.
Until unless teh language settings have been done in regional/language settings and reboot the machine the language strings doesn't change. Is there any way to by-pass teh reboot so that I can update the required registry values for changing different language???
Even there's The Microsoft AppLocale Utility for this but I shouldn't use that utility in my application.
Please post your views
|
|
|
|
|
CPallini - Expecting reply from you
|
|
|
|
|
Sorry, I don't know...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
It depends how the different languages are involved in your program. (But for Unicode characters you will need a Unicode-app.) I have done this via code by changing the resource dlls.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
That's not as "easy" as it may seems, because sometimes even the hardware is involved...
Let me go back in the early days when the fist IBM PC comes to light: there was the ASCII charset (7 bit) that IBM extended adding 128 more character, fitting 1 byte, and adding gliphs to satisfy many latin-derived alphabets (accented vovels, diacritics. etc, pus some "semigraphics").
This did't in fact satisfy any of the langags since all of the supported ones always had something missing.
When windows comes along, a number of "localizations" had been done by basically replacing some useless glyphs (for a specific language) with more useful ones. This led to a number of different character maps (the so called "codepages") some of them still fitting the 256 glyphs space and some other going ahead of that number by using particular "escapes" (and hence requiring MBCS or DBCS support from the string manipulation functions and from the font definitions, as well from the graphics drivers.
Unicode then standardized all that stuff by giving to any existing "glyph" a specific and unique ID. That makes -in theory- possible to depict all the glyphs in any font but - beware - that requires lot of space so not all font makers does that (or does that in different packaging).
So: non-unicode applications to properly display characters must not only rely on the specification of the langID, but also require the corresponding codepage in the system, and since they cannot be contemporary used (a same code means a different glyph within a different codepage) the kernel (better: the user-side of it: user.dll and gdi.dll) must know which codepage has to use.
But this requires dismounting a driver and mounting another one, affecting the system globally.
That's makes your problem not solvable as an "application local problem".
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
I am using WebBrowser to display power point file. When I right click on the slide it shows a context menu. How can I get the control of the context menu? I need to get all the SubItems of the context menu.
|
|
|
|
|
you got to incorporate the "right" COM-Interfaces, which often have an interface for the IContextMenu-interface.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
I have insert the string value in the CListCtl using InsertItem method.
For example.
i have able to pupulate following value in the ClistCtl .My problem is how avoid repeted value that is 200.
100
200
200
200
kandly replay me.
Thanks.
|
|
|
|
|
You can iterate through the list and remove duplicate ones no? Also there are useful stl algorithms like unique which works on a sorted list, so before inserting you can call unique on the list.
|
|
|
|
|
Hi Thomas,
How can i call unique before inserting value to list.
kindly can you clarify me.
Thank.
|
|
|
|
|
Murugan k wrote: How can i call unique before inserting value to list.
You can use unique only if you have a std::list/vector/etc with you which instead you are inserting to a list control. But since you are directly inserting to the list control use CListCtrl::FindItem, if found don't insert.
I guess this will help?
|
|
|
|
|
Why don't you check before inserting?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
you can traverse thorough the list to see if the element you are going toinsert already exist or not.
if it exsist dont insert.
otherwise insert.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
Hi,
I have a Listcontrol which is populated with data.. I need to save all the data into a file (file type is not specific). on clicking a save button. Can I have a code snippet for this.
Thanks
|
|
|
|
|
where exactly are you getting the problem.
in getting the data from the list control or in saving the data to a file or both.
roughly, the algo should be something like this.
<pre>int n=m_list.GetItemCount();
FILE *fp;
fp=fopen("data.txt","w");
for(int i=0;i<n;i++)
{
m-list.GetItemText(i,&str);
fprintf(fp,"%s\n",str);
}
fclose(fp);</pre>
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
V.K 2009 wrote: Can I have a code snippet for this.
Why do you need the code? I mean, what is your trouble about? Make an iteration writing every item data to the file.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
I have trouble in parsing the XML Schema(XSD) file with the MFC VC++ dialog application. Please provide me an sample source code for parsing/traversing the XSD (XML SChema) with the MFC VC++ code. I need to extract all the tags(Elements, attributes, group elements,attribute groups, and etc) of the xsd with the MFC.
Regards,
Hema K
|
|
|
|
|
[^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
how can I supress/hide "System Settings Change" message box using windows registry?
Vinu
Software Engineer
R&D Bangalore
|
|
|
|
|
In my system there is some virus that is keep on running.
Even if i delete that process form taskmanager it will start again.
How can i delete it manually or either progrmatically.
Please help me.
Regards
Deepu
|
|
|
|
|
you're going to have to delete the virus first or else it'll keep reloading the .exe process. focus on cleaning your system not on terminating the process
|
|
|
|
|
i cannot delete that exe as it is running.
|
|
|
|
|
deleting the exe will NOT get rid of the virus... its never that simple. Use proper antivirus/antispyware software(s) to scan your system and use it/them to delete the virus.
|
|
|
|
|
|
good luck and happy hunting
|
|
|
|