|
i have to admit that his answer was more clear, so i think it does not qualify as spam.
Er zit een korstje op mijn aars.
|
|
|
|
|
toxcct wrote: ...the guy has been answering twice on something i already answered...
Is that necessarily a bad thing? Are you sure that he saw your post before making one of his own?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
(:(hello! what's the code to close a window using a button on it ...
the situation :
A login frame ( mainFrame of my program ) that will call a new frame
if the login is correct. then i have to close ( or hide ) the parent frame :
void Cfrmlogin::OnButton1()
{
// TODO: Add your control notification handler code here
CTgesDlg mainFrame ;
mainFrame.DoModal();
}
Thank you for your help
.. me again :'(
|
|
|
|
|
if the frame is Modal, then it halts the execution of the function which called it, unless it is closed from inside it.
inside the frame, do this->EndDialog(0);
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
void Cfrmlogin::OnButton1() <br />
{<br />
CTgesDlg mainFrame ;<br />
ShowWindow(SW_HIDE);<br />
mainFrame.DoModal();<br />
EndDialog(0);<br />
}
thats all.
|
|
|
|
|
|
As has already been mentioned, EndDialog() is the answer, but I would suggest using some argument other than 0 (which normally indicates success) to indicate to the calling process why the application was terminated.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I am working on bayesian filter so i have to prepare a hash table of some words so for this i am mot able to identify how to identify words which are noun,adjective,prepositions etc..
for this if anybody have idea please share with me .
i have one idea that i have to call dictionary API and this api provide function which returns type of given words so also
i am not able to find where i have to download dictionary API so first of all i have to download Dictionary API if anybody can give me link where i can download this API.
please reply me ASAP.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
I am working on bayesian filter so i have to prepare a hash table of some words so for this i am mot able to identify how to identify words which are noun,adjective,prepositions etc..
for this if anybody have idea please share with me .
i have one idea that i have to call dictionary API and this api provide function which returns type of given words so also
i am not able to find where i have to download dictionary API so first of all i have to download Dictionary API if anybody can give me link where i can download this API.
please reply me ASAP.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
|
how can i get physic memory size and information of chassis
am
|
|
|
|
|
GlobalMemoryStatusEx(...)
Nibu thomas
Software Developer
|
|
|
|
|
Visible_Info wrote: Use GetSystemMetrics
How do you propose using GetSystemMetrics() to get the "physic memory size and information of chassis" as the OP has requested?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
how can i get physic memory size and information of chassisusing visual c++
am
|
|
|
|
|
Hi all,
How can i make a folder or directory inaccessible to be edited or viewed of its internal structure?
Kindly Guide.
Regards,
Ankush Mehta
|
|
|
|
|
I don't think you can do it.
Of course you can hide the folder but for making it inaccessible to be edited or viewed I don't think there is an API for that.
Nibu thomas
Software Developer
|
|
|
|
|
Are you wanting to do this programmatically, or use the OS to do it for you?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Programmatically..
Ankush Mehta
|
|
|
|
|
|
Hi Guys,
I have added one edit control to a dialog and attached a string variable to that. But i want only integers can be entered to the edit control and not characters.(N.B. I have attached a string variable to that edit control because i want that value to be received as string. Please help.
|
|
|
|
|
Subclass CEdit and handle WM_CHAR message.
If the char entered is a valid number then call base class implementation else you can ignore the char.
Nibu thomas
Software Developer
|
|
|
|
|
Instead of creating the control variable of edit box as string, use integer type. if u wan to get the number as string just use the "Format" function of the CString.
Then set Number (ES_NUMBER) style of the edit box, which only allows interger to enter.
nave
|
|
|
|
|
There is another way toooooooo
Add the Number style to Edit. Whenever you want text in the edit box, Just call
GetWindowText()
nave
|
|
|
|
|
Thanks a lot to all of you as all are good suggestions. But as per my requrement i feel "Add the Number style to Edit" will be the best solution. But i do not know exactly how to set it and also i am not able find the same.
Nave,
Can you please tell me how to set this style.
|
|
|
|
|