Actually if you dont mind I need little more clearence.
I didnot get how do I use strstrI in the same line
All we need is to incorporate case insensitive search in the same statement above.
(Or can we pass the lowercase of myword itself so that we can check with "tag" always)...something like
i have a problem with font of a CStatic, CEdit,CRichEdit Control Acctually problem is nothing but when i create a control using drag and Drop from contrl box the control text/Caption is looks like normal, and when i create it dynamically using Create function it looks like it is bold.
so how to change dynamically created control's text normal.
I'm having an application for Remote control, but there are some problems in its part of network connections.I have tried for weeks, still can't find out the reason for that.
In our program, we don't use thread synchronization in function "TCPSock->Recv"(winsock api recv() is used in it), because this function is only used in single thread. Today, I tried to add thread synchronization to this function.As a result, these network connections problems are fixed(at least it seems to be).
My question is, "Is thread synchronization needed when only using a function in single thread?"
Yes, I mean "an additional worker thread" when I say "a single thread".
Our program mainly has two parts, server and client.
server accepts connections from client, when a connection is accepted, it creates a "worker thread" to communicate with the client. Only in this thread, "TCPSock->Recv()" will be called, so originally we don't use a "Thread Synchronization". But today, I Added "Thread Synchronization", and the bugs seem to be fixed, so I want to know "Is Thread Synchronization needed in single thread in some conditions?"
But today, I Added "Thread Synchronization", and the bugs seem to be fixed
Glad about that.
"Is Thread Synchronization needed in single thread in some conditions?"
But, I still am not able to understand this. If it is just one thread accessing the code that must be 'protected', then it does not matter how many other threads are running simultaneously. But if more than one thread can possibly access the code that must be protected, then you need synchronization. I hope I am clear.
There is a whole lot of information on this topic here[^] if you would like to read up.
It is a crappy thing, but it's life -^Carlo Pallini
I have 5 CRICH boxes on CMDIChildWnd which are shown properly with a cursor in the first box . That is it has focus but once if I press a mouse cursor on the box the cursor disappears and none of the boxes has focus.If I click the mouse on the box LButtonDown message handler is not called.