|
In my multilingual application, there are some texts on the button in image form. How can I convert those texts in different languages?
I have created resource DLLs for all static strings.
Please help me with this problem.
Thank You
|
|
|
|
|
Purish Dwivedi wrote: Please help me with this problem.
Here is a good article[^] from Codeproject.
|
|
|
|
|
Thanks for the reply Madhu,
But there is nothing about the text incorporated in images?
I don't know how to convert those images or text in those images?
Can u help me to sort out this problem?
|
|
|
|
|
Purish Dwivedi wrote: I don't know how to convert those images or text in those images?
If you have the texts which can be shown as per the language changes, why do you load the bitmaps ? Is that an overhead and a performance degrader ?
Sorry! I was too late to know that you where here for a bit long time with the same multilingual application[^] ...
Let me clarify the problem; You have a background bitmap and you want to draw the strings[^] over it ?
Why can't you try a transparent static control[^] to hold this texts ?
Best of luck with the Multilingual application development.
|
|
|
|
|
the text is incorporated into image file and that file is loading on run time..
|
|
|
|
|
|
thanks for the reply. I'm not getting any idea with these docs.
I want the text or image , whatever it is, it should come from Resource DLL at the run time.
|
|
|
|
|
Purish Dwivedi wrote: I want the text or image , whatever it is, it should come from Resource DLL at the run time.
That was my first[^] reply.
Leave it... just forget IT;
Tip of the day:
In future also, It should be very helpful for you, whether you try the codes shown through the links; Download the code sample to your local machine, compile it; Read the code and try to understand how they done it.
|
|
|
|
|
that's alright.
but there is nothing in that project about "how to get text from image and convert it into various languages"?
|
|
|
|
|
Purish Dwivedi wrote: "how to get text from image and convert it into various languages"?
Well, it is still a question around the IT world
You can also take part in the researches for finding a good OCR[^] technology to achieve this. May have to spend some years to read the text from image and then another couple of years to convert this text to your convenient language.
If you don't have that patience; better to change your design.
|
|
|
|
|
I'm my application a worker thread uses the ShellExecute method to launch the
Web Browser with a specific Html file. The call syntax is like the following:
ShellExecute(handle, "open", fully_qualified_path_to_folder, NULL, NULL, SW_SHOWNORMAL);
The problem I've met is that sometimes the ShellExecute doesn't return immediately
but needs a long time to spawn the Web Broswer (ie 20 seconds).
Does someone know the reason of this behaviour ?
Thanks
|
|
|
|
|
Which is your default web browser ? Is that IE ?
What is the time delay caused normally when you open a new web browser window , is that 20 seconds average ?
If both the answers are YES; there is no problem with ShellExecute.
Other wise, this should be because the ShellExecute broadcasts a message to already running windows to get an instance of the web browser (or Looking in ROT table[^] for an active object) and waiting for that application instance to respond to the new request. Any way I have now valid links to prove this hypothesis.
|
|
|
|
|
The problem happens with both FireFox and IE and 20 seconds is not the default startup time for the browser.
Is it possible to avoid looking in ROT or to avoid broadcasting messages ?
My goal is to open IE with a specific document... maybe it can be done with something easyest than ShellExecute with "open" parameter.
|
|
|
|
|
ilgale wrote: My goal is to open IE with a specific document...
Is this a big document ? If yes, that's probably the reason why you encounter this delay. Try to open the document manually and see how long it takes to open it.
|
|
|
|
|
The document is very easy.. and if I manually open it... it takes 0 seconds to be opened.
Now we have found a relation with a functionality of a Data Acquisition board made by
National Instruments.
If the thread that perform ShellExecute call has created a counter task for the data acquisition board the WebBroswer takes long time to be opened. If we don't create the
task, the WebBrowser is opened immediately.
We could suppose that National Instruments drives "do" something, maybe in ROT, that create
some problems...
|
|
|
|
|
Have you tried this:
ShellExecute(NULL, "open", fully_qualified_path_to_folder, NULL, NULL, SW_SHOW);
This has always worked fine for me in the past.
|
|
|
|
|
It is the browser start-up time, I suppose.
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]
|
|
|
|
|
Hello,there guru
I found a reg file on the website,but I don't know what's its mean?
Can you explain me some detail,thank you very much.
//show.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30501"
"Type"="radio"
"CheckedValue"=dword:00000002
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51104"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30500"
"Type"="radio"
"CheckedValue"=dword:00000001
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51105"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"Type"="checkbox"
"Text"="@shell32.dll,-30508"
"WarningIfNotDefault"="@shell32.dll,-28964"
"HKeyRoot"=dword:80000001
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"ValueName"="ShowSuperHidden"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000000
"HelpID"="shell.hlp#51103"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy\DontShowSuperHidden]
@=""
//hide.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden]
"Text"="@shell32.dll,-30499"
"Type"="group"
"Bitmap"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,\
48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,34,00,00,\
00
"HelpID"="shell.hlp#51131"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30501"
"Type"="radio"
"CheckedValue"=dword:00000002
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51104"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30500"
"Type"="radio"
"CheckedValue"=hex(4):30,30,30,30,30,30,30,30,00
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51105"
多线程脑袋
|
|
|
|
|
Nobody knows. Moreover googling for it will give you merely 24,600,000 results [^]
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]
|
|
|
|
|
Can you explain me the key and the value below:
"Text"="@shell32.dll,-30501"
How to View shell32.dll content(the negative number after it)
I use the resouce hacker view but the value is not the negative number
多线程脑袋
|
|
|
|
|
Is there any rule about shell32.dll and the negative number after it which Microsoft provide for us???
多线程脑袋
|
|
|
|
|
thank you for your replay,I get it.
多线程脑袋
|
|
|
|
|
|
I have a DWORD value 1619.
Corresponding error message to this value is :
"This installation package could not be opened. verify that the package exists and that you
can access it, or contact the application vendor to verify that this is a valid windows installer
package"
Is there a way (an API) which I could use to get the error message (as a string) by providing the DWORD value ?
Thanks in advance
|
|
|
|
|
Sometimes documentation [^] helps.
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]
|
|
|
|
|