Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: making a SAVE AS button Pin
shyang9823-Apr-03 16:01
shyang9823-Apr-03 16:01 
GeneralRe: making a SAVE AS button Pin
brianwelsch23-Apr-03 18:41
brianwelsch23-Apr-03 18:41 
GeneralRe: making a SAVE AS button Pin
Martyn Pearson23-Apr-03 21:24
Martyn Pearson23-Apr-03 21:24 
GeneralRe: making a SAVE AS button Pin
Nitron24-Apr-03 3:39
Nitron24-Apr-03 3:39 
GeneralCRecordset (ODBC) Pin
RalfPeter23-Apr-03 12:34
RalfPeter23-Apr-03 12:34 
GeneralRe: CRecordset (ODBC) Pin
Toni7823-Apr-03 13:29
Toni7823-Apr-03 13:29 
GeneralRe: CRecordset (ODBC) Pin
Cambalindo23-Apr-03 16:49
Cambalindo23-Apr-03 16:49 
Generalhigh performance socket server...... Pin
Martin_Viet23-Apr-03 12:14
Martin_Viet23-Apr-03 12:14 
hello.

I´m making a TCP SocketServer Class derived from CAsynCSocket where I overwrite the OnAccept and OnReceive method.

void SurServer::OnAccept(int nErrorCode) 
{
	// TODO: Add your specialized code here and/or call the base class
	SurServer* ps=new SurServer(pWnd);
	Accept(*ps);
	
	
	CAsyncSocket::OnAccept(nErrorCode);
}

void SurServer::OnReceive(int nErrorCode) 
{	
	char *pBuf = new char[4096];
	int iBufSize = 4095;
	int iRcvd;
	CString strRecvd;
	iRcvd =  Receive(pBuf, iBufSize);
	pBuf[iRcvd] = NULL;
        strRecvd = pBuf;

	((CSpoolerSurDlg*)pWnd)->NuevaTarea(strRecvd);

}


PWnd is a reference to dialog partner. All that work fine, but, I need something better because I have a big traffic of messages at the same time.

Dead | X| Confused | :confused: Unsure | :~

el hombre arriesga su vida cada vez que elige y eso es lo que lo hace libre
GeneralRe: high performance socket server...... Pin
valikac23-Apr-03 14:22
valikac23-Apr-03 14:22 
Generalhigh performance socket server...... (:() help!!!! Pin
Anonymous24-Apr-03 5:20
Anonymous24-Apr-03 5:20 
Generalhigh performance socket server...... (:() help!!!! Pin
Anonymous25-Apr-03 2:47
Anonymous25-Apr-03 2:47 
GeneralRe: high performance socket server...... (:() help!!!! Pin
Anonymous25-Apr-03 7:37
Anonymous25-Apr-03 7:37 
QuestionWhat cause such link errors? Pin
ray_li23-Apr-03 11:44
ray_li23-Apr-03 11:44 
AnswerRe: What cause such link errors? Pin
Nitron23-Apr-03 13:42
Nitron23-Apr-03 13:42 
AnswerRe: What cause such link errors? Pin
Toni7823-Apr-03 14:08
Toni7823-Apr-03 14:08 
General** CLICKETY POLICE ** Pin
Nitron23-Apr-03 14:11
Nitron23-Apr-03 14:11 
GeneralRe: ** CLICKETY POLICE ** Pin
Toni7823-Apr-03 14:16
Toni7823-Apr-03 14:16 
QuestionHow would you name this class ? Pin
Sendel23-Apr-03 10:42
Sendel23-Apr-03 10:42 
AnswerRe: How would you name this class ? Pin
Nitron23-Apr-03 13:46
Nitron23-Apr-03 13:46 
GeneralRe: How would you name this class ? Pin
Sendel23-Apr-03 14:29
Sendel23-Apr-03 14:29 
GeneralLines of text are different size in print preview Pin
Tim Hutzler23-Apr-03 10:42
Tim Hutzler23-Apr-03 10:42 
GeneralRe: Lines of text are different size in print preview Pin
basementman24-Apr-03 7:06
basementman24-Apr-03 7:06 
GeneralRe: Lines of text are different size in print preview Pin
Tim Hutzler24-Apr-03 11:18
Tim Hutzler24-Apr-03 11:18 
GeneralRe: Lines of text are different size in print preview Pin
basementman25-Apr-03 3:56
basementman25-Apr-03 3:56 
GeneralRe: Lines of text are different size in print preview Pin
Tim Hutzler25-Apr-03 11:51
Tim Hutzler25-Apr-03 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.