|
Hi,
I am using a message box API as :
MessageBox(NULL, bstrMessage, bstrTitle, MB_OK | MB_HELP | MB_ICONEXCLAMATION);
This work fine in english...
But in italian OS it is displaying "?" in the caption of "Help" button.
How do we change it to display a correct string in place of "?".?
|
|
|
|
|
Odd as it may seem, for Italian Windows the translation of "Help" or "&Help" is "?" or "&?". You would have to hack the system DLLs (user32.dll actually) to change it.
modified on Monday, March 16, 2009 10:08 AM
|
|
|
|
|
Could you plz give me an example ..?
|
|
|
|
|
|
Hi Mik,
Want to see the implementation part details.
|
|
|
|
|
pandit84 wrote: Want to see the implementation part details
Sorry, I don't what you mean.
Once again - you can't change the translation ("?") of this MessageBox button.
|
|
|
|
|
I want to implement the changes by using redirecting user32.dll to execute our needfull functioanlity..
Mean want to display correct text string of translated "Help" in Italian language.
Could you please tell me the detailed implementation, How I can implpemet through code..... By hacking Systems dll for our need ?
|
|
|
|
|
It might be illegal to modifiy Windows system DLLs so I won't tell you how to do it.
|
|
|
|
|
...and I really don't care that you're downvoting me for this...
|
|
|
|
|
. That looks funny when they immediately respond with a 1 vote.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Yeah, ungrateful buggers
|
|
|
|
|
pandit84 wrote: How do we change it to display a correct string in place of "?".?
Technically speaking, "?" is a string.
BTW: You may roll your own version of the message box.
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,
I am using VC++ 6.0. I need to create an XML which has multibyte support and has the Major version and minor version in it.
CComPtr pXMLDomDocPtr;
CComPtr pDataNode;
CComPtr pRootNode = NULL;
CComPtr pNodeList = NULL;
CComBSTR bstrName,bstrNodeName;
CoInitialize(NULL);
VARIANT_BOOL isSuccessful = VARIANT_FALSE;
HRESULT hr = pXMLDomDocPtr.CoCreateInstance( L"Microsoft.XMLDOM" );
if( hr == S_OK )
{
pXMLDomDocPtr->put_async( VARIANT_FALSE );
CString csXMLFileName(newpath);
csXMLFileName += "\\ITCSettings.xml";
pXMLDomDocPtr->put_async( VARIANT_FALSE );
hr = pXMLDomDocPtr->load((_variant_t)csXMLFileName);
}
I have created XML with above code. What do i need to modify in above code to have major and minor versions and with multibyte support
Thanks,
|
|
|
|
|
Hi to All,
I have a MFC Dialog based application. I just created the application, and did some modification. But I am not able to view the dialog properly, means the dialog appears partially....some parts are visible and others are not...But If i move my mouse cursor to say on a button it appears fine, Also if i click it works fine....just that some display problem...I redo the modification back to original, still the same....
Could anyone p[lease tell me what could be the problem..
Thanks in advance
I am a beginner
|
|
|
|
|
Are you handling WM_ERASEBKGND message in your dialog? If yes, check the implementation. Improper implementation could cause the symptoms that you said.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
no I didn't do anything like that
I am a beginner
|
|
|
|
|
Hi
I got the error fixed. Its nothing but the transparent property of the dialog....I had made it true...its working fine now...
I am a beginner
|
|
|
|
|
himangshuS wrote: and did some modification
What changes? Or your OS is low on resource? lol ^^
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hi All,
I'm savitri here. I'm doing FingerPrint project. In this project i want to store fingerprint in database and retrieve that fingerprint for comparision.I created one table called "Images" with 2 fields called ID(AutoNumber)and Image(OLE Object). While inserting fingerprint i'm writing SQL statement like this.
BYTE* buffer=new BYTE[1632];
buffer=m_RegTemplate.pbData;//m_RegTemplate is DATA_BLOB Type.
"INSERT INTO Images(Image) VALUES('"+buffer+"')";
I'm not getting how to retrieve the fingerprint from the database table. i want to save that retrieved fingerprint into m_RegTemplate.pbData for comparision.
Please tell me how to solve this problem and Give me some hints.
Thanks in Advance
Regards,
Savitri P
|
|
|
|
|
I don't have any idea in depth, but I've seem my mates working on similar assignments. People actually use "Hashing" on image files. They create hash values for images and store it along with the image files in DB. When you want to compare a new file, they don't read the images from DB and compare with the new file, the create create a hash value for the new file and compare against the hash values in the database..
Check here[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
How do I detect any mouse/key input at application level. I have an MDI application where processing of mouse/key events are handled in view/doc class of the child window.
I need to check if any mouse/key input didn't occured for a specific time period. I want to handle them in application or MDI so that I can only in one place. But I am getting only WM_MOUSEACTIVATE, WM_SETCURSOR messages in MDI level.
Please help with any suggestion/idea.
Thanks in advance
Sandip
|
|
|
|
|
Install a mouse hook locally in your application using SetWindowsHookEx .
Start a timer that increments a variable.
Whenever a mouse message occurs the hook procedure will be called.
In the hook procedure reset the variable to 0.
Do the same for keyboard with a keyboard hook.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for the advice...
Sandip
|
|
|
|
|
g_sandipan wrote: I need to check if any mouse/key input didn't occured for a specific time period.
GetLastInputInfo[^] is useful to detect input idle time.
|
|
|
|
|
For that u need to user TIMER, on Application startup u need to start it, and if any MOUSE/key input occurred, then u need to again restart the timer.
Regards,
Sunil
|
|
|
|