Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How I can add jpg images in list box? Pin
Mark Salsbery11-Nov-06 5:04
Mark Salsbery11-Nov-06 5:04 
GeneralRe: How I can add jpg images in list box? Pin
Hamid_RT11-Nov-06 23:07
Hamid_RT11-Nov-06 23:07 
Questionprefix increment Pin
amaneet10-Nov-06 20:45
amaneet10-Nov-06 20:45 
AnswerRe: prefix increment Pin
Mohammad A Gdeisat10-Nov-06 23:36
Mohammad A Gdeisat10-Nov-06 23:36 
GeneralRe: prefix increment Pin
CPallini13-Nov-06 6:26
mveCPallini13-Nov-06 6:26 
GeneralRe: prefix increment Pin
Mohammad A Gdeisat13-Nov-06 7:34
Mohammad A Gdeisat13-Nov-06 7:34 
AnswerRe: prefix increment Pin
toxcct11-Nov-06 1:06
toxcct11-Nov-06 1:06 
QuestionLocking Winsock from sending windows message Pin
Toubou10-Nov-06 20:17
Toubou10-Nov-06 20:17 
After function receive() is called, FD_READ will be fired again, thing will start over, it never reach the next line (a=a+1 and b=b+1)
Is there any way to pause winsock from sending message for a while until I finish my job?

LRESULT CClient::OnWinsock(WPARAM wParam, LPARAM lParam)
{
	switch(lParam)
	{
 
	//...
 
	case FD_READ:
		{
			switch (streamToken)
			{
			case ST_HEADER:
				recv(sc, (char*)&bi, sizeof(BITMAPINFO), 0); //after this line is called, FD_READ will be fired again, it never reach the next line
				a = a+1;
				b = b+1;
				streamToken = ST_BUFSIZE;
				break;
 
			case ST_BUFSIZE:
				recv(sc, (char*)&bufSize, sizeof(int), 0);
				streamToken = ST_BUFFER;
				break;
 
			case ST_BUFFER:
				recv(sc, (char*)cscrbuf, bufSize, 0);
				DrawScreen();
				streamToken = ST_BUFSIZE;
				break;
			}
 
		}
		break;
 
	//...
 
	return 0;
}

AnswerRe: Locking Winsock from sending windows message Pin
Mark Salsbery11-Nov-06 5:12
Mark Salsbery11-Nov-06 5:12 
Question.NET guy wanting to learn C++ Pin
Richard Parsons10-Nov-06 18:10
Richard Parsons10-Nov-06 18:10 
AnswerRe: .NET guy wanting to learn C++ Pin
smithjunior11-Nov-06 1:12
smithjunior11-Nov-06 1:12 
QuestionList of Domains in the network Pin
Taruni10-Nov-06 18:08
Taruni10-Nov-06 18:08 
Questionprogressbar and a manifest Pin
locoone10-Nov-06 13:38
locoone10-Nov-06 13:38 
AnswerRe: progressbar and a manifest Pin
Michael Dunn10-Nov-06 14:17
sitebuilderMichael Dunn10-Nov-06 14:17 
Questiondouble click files to open with single app Pin
includeh1010-Nov-06 13:27
includeh1010-Nov-06 13:27 
AnswerRe: double click files to open with single app Pin
Monty210-Nov-06 18:45
Monty210-Nov-06 18:45 
QuestionMultiagent Systems (MAS) Pin
hahayk10-Nov-06 11:31
hahayk10-Nov-06 11:31 
QuestionMFC Static vs DLL Question Pin
Jethro6310-Nov-06 10:12
Jethro6310-Nov-06 10:12 
QuestionRe: MFC Static vs DLL Question Pin
David Crow10-Nov-06 10:25
David Crow10-Nov-06 10:25 
AnswerRe: MFC Static vs DLL Question Pin
Jethro6313-Nov-06 1:38
Jethro6313-Nov-06 1:38 
QuestionUML Use Case Diagram Pin
heaven12310-Nov-06 6:48
heaven12310-Nov-06 6:48 
AnswerRe: UML Use Case Diagram Pin
Maximilien10-Nov-06 7:18
Maximilien10-Nov-06 7:18 
GeneralRe: UML Use Case Diagram Pin
heaven12310-Nov-06 7:25
heaven12310-Nov-06 7:25 
AnswerRe: UML Use Case Diagram Pin
toxcct11-Nov-06 1:08
toxcct11-Nov-06 1:08 
GeneralRe: UML Use Case Diagram Pin
heaven12311-Nov-06 4:40
heaven12311-Nov-06 4:40 

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.