|
That hurts? You do not know John Simmons, do you?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
sorry rajesh i dont know whos jhon simmons.....
raju.k
|
|
|
|
|
raju.k wrote: i dont know whos jhon simmons.....
You're a lucky guy.
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.
[my articles]
|
|
|
|
|
y ?i cant get it wat u saying ...mr.pallini
raju.k
|
|
|
|
|
Oh, don't worry, just kidding. Anyway John Simmons [^] is a CP's MVP, quite popular for his answers.
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.
[my articles]
modified on Wednesday, January 30, 2008 5:39:17 AM
|
|
|
|
|
It points to your own page. Here[^] is the correct link.
|
|
|
|
|
Thanks, I don't know if the Firefox address bar or my famous double personality made it.
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.
[my articles]
|
|
|
|
|
raju.k wrote: y ?i cant get it wat u saying ...mr.pallini
well, it means you are lucky not to have john simmons replying to your posts. Rajesh's reply was kind to you. If you think Rajesh's words were hard to digest and it hurt you, then I am sure you will be hurt more if john replies to you. Beware of his wrath.
Regards,
Vijay.
|
|
|
|
|
|
raju.k wrote: i am not getting ur code
Then ask questions about what you are not understand about it rather than asking your original question over and over again. That'll get you ignored real fast.
raju.k wrote: becoz i am not searching
What's to search for? The code has been provided...multiple times.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
raju.k wrote: How to generate serial numbers in file?
I don't get enough time to spend here on CP forums these days. But whenever I visit here, I see you posting this question for at least couple of times in a day.
You asked the same question a couple of days back and you are still working on that? even after receiving so much help to finish off that task? I assumed you to be a student, but I am surprised to see that you are an employee.
Regards,
Vijay.
|
|
|
|
|
see vijay..i am a fresher...i have only 1.2 mothes experience of in this field ..now u say what i am did ?
raju.k
|
|
|
|
|
raju.k wrote: see vijay..i am a fresher...i have only 1.2 mothes experience of in this field
Oh please.. don't try to justify your talent by saying the above statement. Haven't you done any coding during your academics?
Regards,
Vijay.
|
|
|
|
|
|
what i need to do is to clear off the data that is there in the file when the check box is unchecked. how do i do that?
i have 4 check boxes and checking each check box will lead to a creation of a file and logging of data. now i need o flush out the logged data when i uncheck the check box. please give me some leads.
|
|
|
|
|
I'm not sure I understood your question correctly. In fact, you simply want to delete the contents of a file ? If that's the case, just recreate the file in truncate mode.
Something like this (if you are using fstreams):
std::ofstream myFile("MyFilename.txt",ios::trunc);
|
|
|
|
|
Chandrasekharanp wrote: i have 4 check boxes and checking each check box will lead to a creation of a file and logging of data. now i need o flush out the logged data when i uncheck the check box.
That's more than one thing to be done. What exactly do you need help on? What have you tried?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi,
I have created a dll in VC++ and an EXE that uses this dll. One of the function called Open(..) present in dll connect to a server. My exe calls this Open(..) function.
when I run my exe for the first time it connects to the server. All the other tries fails. But if I run the exe in debug mode it works. what would be the problem
Can any one help?
Thank you.
Regards,
lg.
lgatcodeproject
|
|
|
|
|
That has probably nothing to do with the fact that it is a dll. Did you try to paste the code from Open in the exe directly to see what's happening ? Does it also fail ?
|
|
|
|
|
Hello everyone,
Such code segment is used to check whether function call or exception-handling mechanism runs out of memory first (written by Bjarne),
void perverted()
{
try{
throw exception();
}
catch (exception& e)
{
perverted();
cout << e.what() << endl;
}
}
1.
My question is when the exception is thrown, and goes to exception handler in catch block, it will do operations in the following sequences,
(1) execute the exception handler code (since there will be recursive function call -- stack will ever increasing);
(2) unwind stack.
Runs out of memory because function call will make stack ever-increasing, right?
If it does (2) before (1), I think stack will always be unwinded before exception handling is called -- then stack will never grow, so there will be no out-of-memory caused by an ever increasing stack.
Is that correct?
2.
I am confused about why exception handling mechanism will run out of memory because in exception handle implementation, we just insert exception handler registration block of the function onto the beginning of the new function call stack each time there is a function call, so the memory should be the memory consumed by function call stuff, I do not think exception handling mechanism itself will consume additional memory. How do you think of it and how do you think of the what are the memory consumed by exception handling mechanism?
thanks in advance,
George
|
|
|
|
|
George_George wrote: If it does (2) before (1)
The above cannot happen.
George_George wrote: I am confused about why exception handling mechanism will run out of memory because in exception handle implementation, we just insert exception handler registration block of the function onto the beginning of the new function call stack each time there is a function call, so the memory should be the memory consumed by function call stuff, I do not think exception handling mechanism itself will consume additional memory. How do you think of it and how do you think of the what are the memory consumed by exception handling mechanism?
I think we can consider it in a broad sense, i.e. if you remove the throw statement, then no stack overflow happens.
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.
[my articles]
|
|
|
|
|
CPallini wrote: I think we can consider it in a broad sense, i.e. if you remove the throw statement, then no stack overflow happens.
Because the recursion breaks.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: Because the recursion breaks.
OMG, and how was you able to find out it?
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.
[my articles]
|
|
|
|
|
Maxwell Chen
|
|
|
|
|
Thanks CPallini,
1.
CPallini wrote: The above cannot happen.
I think you agree with my points that the sequence analysis execute (1) then execute (2).
Which is,
--------------------
My question is when the exception is thrown, and goes to exception handler in catch block, it will do operations in the following sequences,
(1) execute the exception handler code (since there will be recursive function call -- stack will ever increasing);
(2) unwind stack.
--------------------
Runs out of memory because function call will make stack ever-increasing, right?
2.
CPallini wrote: I think we can consider it in a broad sense, i.e. if you remove the throw statement, then no stack overflow happens.
Does your above point related to my 2nd question? What additional memory is consumed by exception handling mechanism?
regards,
George
|
|
|
|