#include <iostream.h>void main(){cout << "cool!" << endl;}
a2k
Edited by - a2k on July 21, 2000 1:10:00 PM
#include <iostream.h>void main(){cout << "cool!" << endl;}
CString myStr;myStr += "Hello";myStr += '' ''; // I am not quite sure this will work... I think it willmyStr += "World";
Visit the ROAD Programming Website for more programming help.
(CLIENT)struct GAMEMSG_GENERIC{ DWORD dwType; std::string message; };GAMEMSG_GENERIC msgWave;msgWave.message.erase();msgWave.message += "hello you server you.";msgWave.dwType = 1;g_pDP->Send( g_LocalPlayerDPID, 1, 0, &msgWave, sizeof msgWave) );(SERVER)HRESULT HandleAppMessages( HWND hDlg, GAMEMSG_GENERIC* pMsg, DWORD dwMsgSize, DPID idFrom, DPID idTo ){LogFile<<"Type:"<<pMsg->dwType<<" Size:"<<dwMsgSize<<" From:"<<idFrom<<" To:"<<idTo<<"\n";LogFile<<pMsg->message.c_str()<<"\n";