list <SOCKET> --- got code statement (list) from a socket article in console, ----> in MFC a compile error [modified]
-
here is the following statement, ////////////////////////////////// list<SOCKET> m_vClientList; // All sockets connected to client ////////////////////////////////// I have included the #include <list> the program in question, is an internet chat, one server to many clients also a declartion in the header file ///////////////////// int SendMessagePort(string sMessage); ////////// has a problem with (string) I know that mfc deals with CString but in this case it might help with my query. I gather that I need an ---#include of somesort, do you know what it is. thanks very much
modified on Saturday, October 4, 2008 12:38 PM
-
here is the following statement, ////////////////////////////////// list<SOCKET> m_vClientList; // All sockets connected to client ////////////////////////////////// I have included the #include <list> the program in question, is an internet chat, one server to many clients also a declartion in the header file ///////////////////// int SendMessagePort(string sMessage); ////////// has a problem with (string) I know that mfc deals with CString but in this case it might help with my query. I gather that I need an ---#include of somesort, do you know what it is. thanks very much
modified on Saturday, October 4, 2008 12:38 PM
You've to include , and add the
using namespace std;
directive. For instance// mysource.cpp
#include #include using namespace std;
// ... your code:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
You've to include , and add the
using namespace std;
directive. For instance// mysource.cpp
#include #include using namespace std;
// ... your code:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thanks,