Hallo!
Wollte ein Client unter VC++ 5.0 schreiben und das als KonsolenProgramm. Leider schaffe ich es einfach nicht CAsyncSocket richtig zu initialisieren. Schaut euch mal diesen Quellcode an:
//**************************************
#include
#include
//***********************************
class CMySocket : public CAsyncSocket
{
public:
CMySocket () {};
~CMySocket () {};
};
int main()
{
//
CMySocket mSocket;
AfxSocketInit();
if (mSocket.Create())
cout SUCCESSFULL!\n";
else
cout NOT SUCCESSFULL!\n";
if (mSocket.Connect(„127.0.0.1“, 4000))
cout SUCCESSFULL!\n";
else
cout NOT SUCCESSFULL!\n";
return 0;
}
//*********************************************************
Ich habe bereits im Projekt->Einstellungen die MFC als „shared used DLL“ eingestellt.
Was mache ich da falsch???
Bin dankbar für jeden kleinen Hinweis!
Ciao
Catmad