|
yes, program is compiling.
But string which is stored in japanese is coming like ??? ????
|
|
|
|
|
You should answer all the questions that I asked.
1. Have you added the Unicode text to string table and have you verified that the program is actually reading it?
2. Are you type or paste Japanese text (Unicode) into notepad?
3. If yes, are you able to paste this text into your application?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
1. Yes my programe is reading the unicode string.
2. I have copyed and pasted the japanese string into string table.
I can see it in string table but in .rc file it is giving ? ? ????????? like this.
can you tell me the encoding format of .rc file?
|
|
|
|
|
sumit.durg wrote: an you tell me the encoding format of .rc file?
The encoding should be Shift-JIS, CP932.
|
|
|
|
|
Hi,
I have rectangle,polygon and activex control in my application. When i placed rectangle on the form and printing to html file i am able to see rectangle in the form. But when i am placing an activex control i am not able to see that in the html file.
How to print an antivex control in VC++ or using win32 sdk.
Thanks
|
|
|
|
|
|
In a modal dialog
INT_PTR nRet = Dlg.DoModal();
if (nRet == IDOK)
else
The program waits until the user clicks on Ok or Cancel before going any further, so it decides what to do depending on the user's selection.
How do you do the same thing in a Mode-less dialog??
|
|
|
|
|
If you are using Dialog Data Exchange (DDX) and Dialog Data Validation (DDV), your OnOK() handler for your dialog class might resemble the following:
void CMyModeless::OnOK()
{
DestroyWindow();
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Ok... but I don't know how to make the program wait until the user clicks on a button.
|
|
|
|
|
Why you need modeless dialog ?
|
|
|
|
|
Because the user must be able to do other things while the dialog is active.
The user performs some actions (outside the dialog) and then clicks Ok or Cancel.
|
|
|
|
|
Your requirement is very contradicotry. There is no way you can achieve this.
|
|
|
|
|
IMHO, you should look for a mechanism to pass a pointer of your parent dialog to the child dialog, when the user clicks on the OK button modify the value in the parent using the Get/Set function, and then use them in your parent.
You can also try using the GetParent() and then setting the value in the modeless dialog class.
I hope that this helps.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
piul wrote: ...I don't know how to make the program wait until the user clicks on a button.
To do this, use a modal dialog.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
My program is creating a file named file.prop with one of the following in it...
...
Max records=10
Temp size=94
<pre>
Next, I parse this file line by line and get the values...
As I finish reading a line from a file I want to erase that line from the file for e.g. I read Temp size=94. After reading this line I want to erase it from file.prop . How can this be done. Please help me out.
THANKS..
|
|
|
|
|
Without knowing your code, hard to say.
In general, if you are reading the file line by line do the following:
Write each line you read to a temporary file. Once you reach the line you want to delete, skip it. Once your done reading, rename the temporary file overwriting the original file.
modified on Friday, May 16, 2008 6:57 AM
|
|
|
|
|
pl_kode wrote: As I finish reading a line from a file I want to erase that line from the file
Why? What is it that you are trying to avoid?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
I have made a dialog box application, in that application i have made various controls and on clicking on buttons some resources are being hide and some are being shown. My problem is sometimes when i press button or simultaneusly press various buttons controls take time to load and at that time cpu usage is 75-100%.
Can anybody help me in solving this....
thanks in advance
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
How many buttons you have on the forum ?
|
|
|
|
|
12 buttons
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Can you show us the code you use to hide/show the controls?
|
|
|
|
|
m_Dialog_Path.ShowWindow(FALSE);
m_Shortcut_Info.ShowWindow(FALSE);
m_Reg_Det.ShowWindow(FALSE);
m_Uninst_Gen_Info.ShowWindow(FALSE);
m_Del_Edit.ShowWindow(FALSE);
m_Files.ShowWindow(TRUE);
m_Fil.ShowWindow(TRUE);
m_Add_Dir.ShowWindow(TRUE);
m_Clear_List.ShowWindow(TRUE);
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Look up the documentation for ShowWindow(). Use SW_SHOW and SW_HIDE as parameters.
However, I doubt that it solves your problem with high CPU usage. It could be something else in your code.
|
|
|
|
|
when i have just written code to show and hide controls problem existed
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I dont think problem is of these buttons.you click them repeated or once?
|
|
|
|