|
as he said.. insert the string table in the resource file. Translate the strings.
There are some programs out there which aid you in translating those files. But in general this is it.
I think the asked "Is it possible to do this?"
And I said: "Yes you can, as long as you don't use languages which need more than 1 byte per character"
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
yeah ok... i just understood more than he asked...
i thought he was asking for "how to do this...".
but tell me, ,as you already do it like this, could you explain a brief piece of code (considering we already have several resource string tables, and we already know how to load/display the needed strings) on how we can switch from one language to one other ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
Normally it takes the system preference's language. So you shouldn't need to worry about this. But you can change the behavior by hand when calling:
SetThreadLocale(MAKELCID(LANG_ENGLISH,SORT_DEFAULT));
This would force the program to use the English strings after the call.
One small problem you are going to encounter (at least in our setup):
If the strings are in a different codepage, you are not going to see the "real" strings out of this. But as soon as the computer is set up to correct codepage, you see the strings correctly.
If you'd use a unicode app, this problem should be solved (at least as much as I know.. never had the chance to try it).
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
Ok,
I'm going to try this solution.
|
|
|
|
|
one last question :
where to call SetThreadLocale() ? anywhere after OnInitDialog() ?
what are this macros (how are they defined) ? : MAKELCID() , LANG_ENGLISH , SORT_DEFAULT .
thanks for the prompt and concise answer...
ps: i don't have any visual studio installed, and am quite bored about msdn today, so here is why i ask all this to someone who seems to wqell know the subject...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 4:19 Thursday 9th February, 2006
|
|
|
|
|
We are calling it the InitInstance of the application. Then all the dialogs / views are set up with the correct strings.
If you want to change the language at runtime, you have to call this language first and then "refresh" all your views / menus whatever. (Set the item texts with the new strings from the resource table)
(But this whole process depends on the structure of the program)
More information on SetThreadLocal
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_52lh.asp
Regarding your exact question:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_7qck.asp
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
Hello,
I am new to Visual C++ (not to C++ though) and I am trying to draw a curve with GDI+. Since I kept getting the same linker errors, I made a new project in which I only included <windows.h> and <gdiplus.h>.
The result: first this warning: (all linker errors)
<br />
warning LNK4248: unresolved typeref token (0100001A)for 'Gdiplus.GpCachedBitmap'; image may not run<br />
And then several errors of this type
error LNK2028: unresolved token (0A000049) "extern "C" enum Gdiplus::Status __stdcall GdipCloneImage(class Gdiplus::GpImage *,class Gdiplus::GpImage * *)" (??1PrivateFontCollection@Gdiplus@@$$FUAM@XZ)<br />
I have installed Visual C++ 2005 Express and the Windows Server 2003 SDK and added the path to the VC++ Directories.
Running on XP with SP2
Thanks in advance.
Best regards,
Jan Timmerman
-- modified at 3:09 Thursday 9th February, 2006
|
|
|
|
|
You probably forgot to link to the GDI+ library. I don't which one it is, I suppose it is something like Gdiplus.lib (you have to check that). Then, in the property of your project, in the linker tab, you need to add this library into the input libraries.
|
|
|
|
|
Ok, it builds. Only thing that remains is the warning.
Thanks for the help!
|
|
|
|
|
Hi All,
I have the problem about focus when execute a new program from my application (I used SHELLEXECUTEINFO to do that). I expect that focus must remain on the new program until it is closed. Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Please help me. Thank you very much
|
|
|
|
|
Nguyen Thi Thanh wrote: Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Pass SW_MAXIMIZE in nShow parameter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: Pass SW_MAXIMIZE in nShow parameter
In this case, I can click on restore button of window and I can still touch the parent screen. I mean the end user does not have no way to transfer to another screen until the new program is closed. I want the new program running as top-level window.
Thank you very much.
|
|
|
|
|
Hello,
I copied my VC6 project to another PC, but when opened there it prompted some .h file were not found. I checked and found at least the include files content under Tools/options/directories is different. Anyone knows how to make these settings on different computers to be the same, instead manually add in each entry?
I tried the following method:
http://support.microsoft.com/kb/q247005/#appliesto
and backup the content under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
then recover to another PC. But the include files did not change after restart.
Thanks!
Thomas
|
|
|
|
|
In VC6 they are stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
Check this link if it helps you. link[^]
In VC.NET 2003, they are stored somewhere in
C:\Documents and Settings\ as a file named VCComponents.dat
I dont remember the exact location but search it and you will find it.
There are two types of roads in our country. One
is under construction and the other is under repair.
|
|
|
|
|
Hello everybody, sorry to disturb you. I saw your post in the forum. I need a C/C++ programmer with Digital Signal Processing (DSP) knowledge. My software will be done in MFC dialog-based. The software will generally operates as follow. Here is the basic idea:
Waveform is displayed real-time in time domain when speech is spoken into microphone.
Analysis will be done on the waveform and the time-domain details will be displayed on a dialog box. We may need to ADC,remove DC offset, windowing, FFT, power/amplitude spectrum, filtering and IFFT. I will send you more details if you are interested.
I urgently need a programmer who has experiences in the above software. This is not a spam or junk mail. Please email me at isabella_1202@yahoo.com. You can either email, pm or reply here. Do inform me the fee you require. I have been struggled for many months, living in depresses of searching on how to solve my problems. Please help, urgently need. Hope to hear from you soon, please. Thank you.
regards
isabella
|
|
|
|
|
|
|
Michael P Butler wrote: That's just cruel
Actually i was trying to be very helpfull
-Prakash
|
|
|
|
|
isabella_1202 wrote: You can either email, pm or reply here. Do inform me the fee you require. I have been struggled for many months, living in depresses of searching on how to solve my problems. Please help, urgently need. Hope to hear from you soon, please. Thank you.
Whom do you refering too.... you can post you advertisement JOBS[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi!!
Can anybody tell me . what is IXMLDOMDocument or IXMLDOMDocumentPtr?? And how is it related with xml pARSING.
i want to convert my old ini files into xml files by using XML Parsing functions in an MFC SDI application. I had done the conversion by using old C Functions, but how to do it using MFC functions.
Thanx
"If you change then change for the good."
|
|
|
|
|
swaapu wrote: i want to convert my old ini files into xml files by using XML Parsing functions in an MFC SDI application. I had done the conversion by using old C Functions, but how to do it using MFC functions.
look for CMarkUp class here at CP, that will sort out your problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
swaapu wrote: Can anybody tell me . what is IXMLDOMDocument or IXMLDOMDocumentPtr?? And how is it related with xml pARSING.
Read the documentation for MSXML/Microsoft XML Core Services. And check out the samples.
|
|
|
|
|
swaapu wrote: IXMLDOMDocument or IXMLDOMDocumentPtr
are Types used in Microsofts bloated COM-operated XML-DOM-parser.
I hate this thing, I find it totally unusable.
If you only want short ini-filies XMLized I would recommend a smaller parser (like CMarkup[^]
I really liked their versions up until 6 and have no idead of the bloat-factor till then.
Another alternative would be Xerxes, which, while also being huge, i feel has a much better interface than MSXML.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
TinyXML[^] is meant to be good (but IIRC the Unicode support is poor).
|
|
|
|
|
Developping a combobox, i want to add an Office 2003 style, working under W2K and XP. All the articles and libraries I found do not really work : hardcoded colors, hardcoded theme selection (only those delivered with XP), approximation too far from the real colors (under XP and/or W2K).
Does somebody has ideas on the algorythms to use for the three states of the combox button ? (it seems to me that the standard (not hover, not pressed) button is draw transparently upon the toolbar of WinWord,so the mean to get the colors of this toolbar is also nedeed).
|
|
|
|