|
You can use of InsertString(1,"String") or AddString("String") .
|
|
|
|
|
vikramkarthik wrote: i tried with TRACE command...
Why in the world would you think that TRACE() would be used for updating a combobox?
Since you are using MFC, use ClassWizard (Ctrl+W) to assign a CComboBox member variable to the control. When you are ready to update the control, use CComboBox::AddString() or CComboBox::InsertString() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi
I have a dialog with different controls on it like edit box, combo box, button ,slider control.
I want to display a message on kill focus of the dialog, i mean, when the focus is not with any of the controls in the dialog.
Can anyone help me.
Thanks in advance.
|
|
|
|
|
Does WM_KILLFOCUS any help?
|
|
|
|
|
Thanks a lot for your reply.
Actually, i have tried to handle the message "WM_KILLFOCUS" in the dialog, but it is nor working.
Can that message be handled in a dialog?
|
|
|
|
|
As long as the dialog is displayed, one of the child controls will always have the focus.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
yes.
i got it. i have handled the kill focus of each of the controls on the dialog.
Thanks a lot for your concern.
|
|
|
|
|
harsha u wrote: I want to display a message on kill focus of the dialog, i mean, when the focus is not with any of the controls in the dialog.
Assuming you want to be notified when your dialog, not just a particular control, loses focus, the message you want to handle is either WM_ACTIVATEAPP or WM_ACTIVATE .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Just now I receive a project about changing a software to support internationalization, but I have no experience in multilanguage programing.
After searching in Google, I get the following scheme:
1. Resource scheme. Every language has a RC, which will be compiled to dll (pure resource dll).
2. Dictionary file (plug) scheme. The dictionary file stores "Lable-Message" pair. Programme reads the message-string once starts up, and then, GetDlgItem(ResourceID)->SetWindowText(MessageString).
3. Any others???
Resource scheme is really troublesome because you should maintain multiple resources, and the data-coherence is difficult to solve. So in my idea the dictionary scheme is better. But it still has lot of problems, just like the width of the Static Lable (CStatic), and the popup menu item has no ID.
In one word, I've no experience. What and how should I do, and what I must pay attention to...
Thanks a lot!
|
|
|
|
|
|
I want my application support Arabic which is unicode encoded. But I can't write arabic directly in vc6.0. Maybe I can use its unicode, but it's very inconvenient. Is there any good suggestions?
|
|
|
|
|
VC6 is not a Unicode app, so you can only enter characters that are in your current ANSI code page.
|
|
|
|
|
Here is my scenario:
My friend Tom has made a program in Microsoft Visual C++, He compiled his program into Program.exe and sent me program.exe with all the necessary .dlls etc to run. My problem is his program has several errors and I want to edit his C++ source and recompiled it. The issue is Tom lost the Visual C++ Source files for his program.
My Question is, can anyone give me an outline of what is needed to convert his program back to C++ source files, and what are the Best programs for the task ( I dont mind paying) to do this. What I have attempted so far, is I have decompiled the program using IDA Pro and saved my decompiled project as Program.ASM (low lvl language) im stuck on getting this low level language Program.ASM converted somehow into C++ source. I may have decompiled it incorrectly, (or stared off completely wrong)in addition, if anyone has a good guide on how to ensure you have Correctly decompiled a program with little or no errors that would also be appreciated.
Thank you for your time, Any Help would be appreciated.
|
|
|
|
|
You can't get back to the original C++ source because the original variable and function names are not present in the compiled executable.
|
|
|
|
|
Why he cant write it again if he doesnt source code?
|
|
|
|
|
Are you nuts or what ?
he says Tom lost it and you ask him to re-write !!??
if you can not answer keep quiet brother
redindian
|
|
|
|
|
dharani wrote: if you can not answer keep quiet brother
if i ask same from you??
"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
Support CRY- Child Relief
|
|
|
|
|
Hello Alok
Understand what I mean . The person who came to the forum clearly has STATED his friend TOM has lost the code and WhiteSky asks him why not Tom re-write the code . Does n 't it seem to be mockery to you ?
Well , I am not here to pin point somebody's errors but I do notlike careless questions and answers which will irritate people ....
I have nothing personal against anyone ...
redindian
|
|
|
|
|
dharani wrote: Does n 't it seem to be mockery to you ?
Not necessarily. It was a legitimate question. Unless it was a huge application, re-writing it is not out of the question, and it would likely end up being better than the original.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
dharani wrote: I have nothing personal against anyone ...
you may be right! but it semms personal flamming to me.. but may be i am wrong.. any way continue your good work
"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
Support CRY- Child Relief
|
|
|
|
|
Whats your problem? maybe you think you know all things!??
|
|
|
|
|
I think "tough shit" is the most appropriate response here.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well The Program itself is very large to me, the Exe itself is several megabytes large. And when I decompiled it and saved it as ASM format there was over 1.8 million lines of code, this is something that has taken a Long Time to create and would take a very long time to remake. Is it not possible to convert an exe back into C++ language?? I have it all in ASM, but I want to somehow Convert The ASM code into C++.
|
|
|
|
|
What part of "tough shit" didn't you understand? If all you have is the exe, the best you can expect is assembly language.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well your "Tough Sh*t" wasn't tough enough, I was able to decompile it to C using Boomerang.
|
|
|
|