|
It's all Nish's fault. Look at the title of his post below. It's misleading other people to think that this is a programming forum.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Yep! a typical case of "One rule for one, another rule for another", which seems be case in the lounge. Depending on your popularity factor, posting Programming or near Programming question, a 'blind eye' will be taken.
Blogless
|
|
|
|
|
norm.net wrote:
Yep! a typical case of "One rule for one, another rule for another", which seems be case in the lounge. Depending on your popularity factor, posting Programming or near Programming question, a 'blind eye' will be taken.
I suppose it depends on your point of view. To me, Nish didn't post a programming question. He started a discussion on a programming subject. He wasn't asking for help with his programming, he was asking for a point of view on a programming concept. I don't know about you, but this is the kind of thing me and other programmers discuss over lunch or other non-working get-togethers. So I think it is a valid lounge topic.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
Though both norm.net and you have valid points, I'm more likely to side with you.
Michael P Butler wrote:
this is the kind of thing me and other programmers discuss over lunch or other non-working get-togethers.
Exactly.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
"It's like hitting water with your fist. There's all sorts of motion and noise at impact, and no impression left whatsoever shortly thereafter." — gantww.
|
|
|
|
|
Michael P Butler wrote:
To me, Nish didn't post a programming question.
It gets to a fine line discussion/question I'm not splitting hairs, I've seen newbies and near newbies dragged backwards through the bushes for posting similar messages, yet when a popular long timer posts similar material the blind eye approach is taken. It's merely an general observation and my opinion.
Blogless
|
|
|
|
|
norm.net wrote:
It gets to a fine line discussion/question I'm not splitting hairs, I've seen newbies and near newbies dragged backwards through the bushes for posting similar messages, yet when a popular long timer posts similar material the blind eye approach is taken. It's merely an general observation and my opinion.
You have a fair point.
Newbies on any site always get a rougher time than those who are on the staff or who are well-respected members of the community. (You should look-up some of the hassle that Nish got when he first joined)
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
Michael P Butler wrote:
You should look-up some of the hassle that Nish got when he first joined
Glad someone remembers
|
|
|
|
|
Sour grapes.
norm.net wrote:
Blogless
COOL!
|
|
|
|
|
ahz wrote:
Sour grapes.
Not for me, maybe for others.
Blogless
|
|
|
|
|
old-message-board-nazi-fart
|
|
|
|
|
WHAT?
> old
I'm 21 years young.
> message board
Yes, this is indeed a message board.
> nazi
I'm North Indian, which I guess makes me Aryan, but I'm certainly not racist, so I don't see how I can be called a Nazi.
> fart
I eat healthy food, and I eat in moderation. It's a long time since I f*rted.
Only one out of your four charges is valid. And I don't think posting on a message board is a crime.
Are you criticizing me for my previous post? If so, I'm sorry, you're mistaken. Was my post in any way combative or threatening or demeaning? I certainly think I was polite, but if you disagree, I can't help it.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
"It's like hitting water with your fist. There's all sorts of motion and noise at impact, and no impression left whatsoever shortly thereafter." — gantww.
|
|
|
|
|
Me thinketh the lady doth protest too much!
Gee, did I touch a nerve, or what?
LOL.
|
|
|
|
|
ahz wrote:
Me thinketh the lady doth protest too much!
LADY?
ahz wrote:
Gee, did I touch a nerve, or what?
Nope. Not in the least bit. If somebody thinks I made a mistake, I explain my side of the argument. But if they persist, they're free to disagree.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
"It's like hitting water with your fist. There's all sorts of motion and noise at impact, and no impression left whatsoever shortly thereafter." — gantww.
|
|
|
|
|
It's a quote from a shakespeare play. As if you didn't know. LOL
|
|
|
|
|
Vikram A Punathambekar wrote:
I'm 21 years young.
I believe, you going to young by one more year next month
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Truth be told, I hate growing up.
But the problem is only when you're under 25 and haven't grown up inside - people think you're childish and immature and actually look down upon you. If you're older than 25 and haven't grown up, people actually admire you.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
"It's like hitting water with your fist. There's all sorts of motion and noise at impact, and no impression left whatsoever shortly thereafter." — gantww.
|
|
|
|
|
GuruJI Nice pravachan
Vikram A Punathambekar wrote:
If you're older than 25 and haven't grown up, people actually admire you.
yeah, I believe I heard this many time
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
So - 15 replies and NO help? interesting...
First of all, do you debug a Debug build or a Release? (Release build can rearrange your variables)
Second, is the code in the executable file or in a DLL? (The code that you are looking at might not be current if you have multiple copies of your DLL)
-----------------------------
Get trial copy of comment generating tool CommentMakerPro, a collection of convenience and productivity tools for Microsoft Visual Studio .NET FeinStuff, and std::string and std::string containers viewer FeinEvaluatorPro at www.FeinSoftware.com
|
|
|
|
|
I use AfxBeginThread to create a thread in which, there is loop keep reading a log file and display the contents. This thread is a memeber of a dialog. when i exit the dialog by click "Cancel" button. how can i terminate the thread when i click the "cancel" button?
I see some one said can use PostThreadMessage, but how can i catch the message as the thread process is a loop fuction.
Pls Help.
|
|
|
|
|
A better solution would be to use a loop that finishes when a certain variable is false:
while (bContinue)<br />
{<br />
}
Thus, when this variable becomes false, the function exists and your thread terminates.
And to be really clean, this variable should be a member variable of your dialog class. Then, when you need to close the Thread you do:
bContinue = false;<br />
Hope this helps
|
|
|
|
|
but for CWinThread, the thread process funtion is a static fucntion. the parameters are passed into thread fucntion by the "LPVOID param" argument.
How can i pass a class member attribute into the thread function?
Thanx.
|
|
|
|
|
I suppose you create your thread within a class function ? If yes then pass the this pointer to the function and inside that function, call a public member function of your class. That's it.
|
|
|
|
|
|
Using Pointer really can change access the data have been passed into the thread.
thanx a lot.
One more question is that is there any potential problem if uing this method.
i mean , if the thread loop is reading the status while outside fuction change the status at same time.
|
|
|
|
|
Yes, there can be problems so it is better to use a CCriticalSection for both reading and writing to the variable. Take a look at the MSDN doc, it is not really complicated to use. If you have any further questions, don't hesitate to ask.
|
|
|
|