Hi,
I'm writting messenger in c++, but this VS10 is ........ing me off. I have a class which has function I run as thread :
Code:
cResult = recv(this->_sock, Packet.buff, 1024, 0);
if (cResult > 0)
{
Packet.size = cResult;
Packet.from = (int*)this;
switch (Packet.buff[2])
{
case 1: return this->IcomingPacket_AuthResult(Packet); break;
}
}
And now what I want to do is to display message in richBox on Form. How to call that stupid richBox within my class file let's say it "MyClass.cpp"??
Another thing is that boost thread isnt working when I use GUI :
Code:
Error 3 error C3861: '_InterlockedExchange': identifier not found C:\c++ visual\boost_1_49_0\boost\smart_ptr\detail\spinlock_w32.hpp 62 1 Messenger_Client
Error 4 error C3861: '_InterlockedExchange': identifier not found C:\c++ visual\boost_1_49_0\boost\thread\win32\basic_timed_mutex.hpp 46 1 Messenger_Client
Error 5 error C3861: '_InterlockedExchangeAdd': identifier not found C:\c++ visual\boost_1_49_0\boost\thread\win32\basic_timed_mutex.hpp 160 1 Messenger_Client
Error 8 error C3861: '_InterlockedExchange': identifier not found C:\c++ visual\boost_1_49_0\boost\smart_ptr\detail\spinlock_w32.hpp 62 1 Messenger_Client
Error 9 error C3861: '_InterlockedExchange': identifier not found C:\c++ visual\boost_1_49_0\boost\thread\win32\basic_timed_mutex.hpp 46 1 Messenger_Client
Error 10 error C3861: '_InterlockedExchangeAdd': identifier not found C:\c++ visual\boost_1_49_0\boost\thread\win32\basic_timed_mutex.hpp 160 1 Messenger_Client
Please help me asap