А вот ещё одна, в файле MySocket.cpp :
Код:
void CMySocket::OnAccept(int nErrorCode)
{
// TODO: Add your specialized code here and/or call the base class
AfxMessageBox(LPCTSTR("Соединение"));
m_pDlg->OnAccept();
this->OnAccept(nErrorCode);
CSocket::OnAccept(nErrorCode);
}
void CMySocket::OnReceive(int nErrorCode)
{
// TODO: Add your specialized code here and/or call the base class
AfxMessageBox(LPCTSTR("Данные получены"));
m_pDlg->OnReceive();
this->OnReceive(nErrorCode);
CSocket::OnReceive(nErrorCode);
}
|
Лог:

1>------ Build started: Project: server, Configuration: Debug Win32 ------
1>Compiling...
1>MySocket.cpp
1>d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.cpp(27) : error C2027: use of undefined type 'CserverDlg'
1> d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.h(23) : see declaration of 'CserverDlg'
1>d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.cpp(27) : error C2227: left of '->OnAccept' must point to class/struct/union/generic type
1>d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.cpp(36) : error C2027: use of undefined type 'CserverDlg'
1> d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.h(23) : see declaration of 'CserverDlg'
1>d:\рабочий стол\c++\my c++ projects\новая папка\sssss\server\server\mysocket.cpp(36) : error C2227: left of '->OnReceive' must point to class/struct/union/generic type
1>Build log was saved at "file://d:\Рабочий стол\C++\My C++ Projects\Новая папка\sssss\server\server\Debug\BuildLog.htm"
1>server - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
Тут тоже скорей всего что то с класами, просто никогда с класами не работал, а вот щас пришлось...