I wrote the client-server program that user can send the task to operate at the server and user can stop the task in the server if it takes a long time. So I do the task in worker thread. The problem occur when the socket in the user interface thread receives the stop signal, at that time the...
I added the edit control to my dialog then I right-clicked and chose "Add variable...", the "Add Member Variable Wizard" appeared.
In "Add Member Variable Wizard", I chose the category to "Value" and chose the type to "float". I named the...
Help me plz!!!!!
I passed the socket to my thread but it can't receive any message!!!!!!!!!!!
Did I do something wrong?
I have a main class CServerDlg which accepts the socket connection in this method.
void CServerDlg::ProcessPendingAccept()
{
CClientConnSocket* socClientConn = new...
I've declared CStringArray m_saRule.
When I want to release it, I use the following code.
int nNumRule = m_saRule.GetSize();
for(int pos=0; pos<nNumRule; pos++)
delete m_saRule[pos];
m_saRule.RemoveAll();
But it has an error in runtime.
What's wrong? How can I release it?
Thank you very much.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.