Click here to Skip to main content
15,918,041 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Silly question about std namespace Pin
Mike Dimmick21-Apr-04 0:50
Mike Dimmick21-Apr-04 0:50 
GeneralRe: Silly question about std namespace Pin
Jerome Conus21-Apr-04 1:03
Jerome Conus21-Apr-04 1:03 
GeneralVC++ -> Want to modify a binary file that contain "ab 0e" to "0xab 0x0e". Pin
Pankaj Bhalla20-Apr-04 19:51
Pankaj Bhalla20-Apr-04 19:51 
GeneralRe: VC++ -> Want to modify a binary file that contain "ab 0e" to "0xab 0x0e". Pin
Steve S20-Apr-04 22:01
Steve S20-Apr-04 22:01 
GeneralRe: VC++ -> Want to modify a binary file that contain "ab 0e" to "0xab 0x0e". Pin
toxcct20-Apr-04 22:42
toxcct20-Apr-04 22:42 
GeneralRe: VC++ -> Want to modify a binary file that contain "ab 0e" to "0xab 0x0e". Pin
Tim Smith21-Apr-04 3:48
Tim Smith21-Apr-04 3:48 
Generalhelp on winsock problem Pin
psyclope20-Apr-04 18:26
psyclope20-Apr-04 18:26 
GeneralRe: help on winsock problem Pin
Paul Ranson21-Apr-04 9:47
Paul Ranson21-Apr-04 9:47 
I really don't understand your code. I think you have major design issues to deal with. Mixing the socket handling code up with the protocol handling code with the windows handling code seems to me to be a recipe for problems. And a thread per connection is usually inefficient. Consider using either MFC sockets, straightforward sockets with Windows Messages for events, or sockets with Events you can 'WaitForMultipleEvents' on. Also reference some of the server library implementations available here. I have one of my own, but it's not documented yet. Here if you're interested.

Anyway I suspect your problem is that 'msgcount' never seems to be set in the 'dlg'. And there's clearly a bug here,
msgcount=dlg->getcount();
msgcount = 1;


Good luck.

Paul
QuestionHow to map CString to Class Pin
ykutanoor20-Apr-04 18:24
ykutanoor20-Apr-04 18:24 
AnswerRe: How to map CString to Class Pin
Christian Graus20-Apr-04 18:28
protectorChristian Graus20-Apr-04 18:28 
AnswerRe: How to map CString to Class Pin
Mike Dimmick21-Apr-04 0:53
Mike Dimmick21-Apr-04 0:53 
GeneralNewBird: How to...... Pin
tcsiong20-Apr-04 18:01
tcsiong20-Apr-04 18:01 
GeneralRe: NewBird: How to...... Pin
22491720-Apr-04 19:25
22491720-Apr-04 19:25 
QuestionHow to embed a binary file using CArchive Pin
Ted Christiansen20-Apr-04 13:53
Ted Christiansen20-Apr-04 13:53 
AnswerRe: How to embed a binary file using CArchive Pin
Mike Dimmick21-Apr-04 0:57
Mike Dimmick21-Apr-04 0:57 
GeneralRe: generate random ip addresses Pin
John M. Drescher20-Apr-04 16:24
John M. Drescher20-Apr-04 16:24 
GeneralRe: generate random ip addresses Pin
David Crow20-Apr-04 16:30
David Crow20-Apr-04 16:30 
GeneralRe: generate random ip addresses Pin
toxcct20-Apr-04 22:17
toxcct20-Apr-04 22:17 
GeneralRe: generate random ip addresses Pin
Paul Ranson21-Apr-04 9:29
Paul Ranson21-Apr-04 9:29 
Generalfetching selected text Pin
TFB20-Apr-04 12:22
TFB20-Apr-04 12:22 
QuestionWhat does this line of code really do? Pin
Redbehelit20-Apr-04 10:22
Redbehelit20-Apr-04 10:22 
AnswerRe: What does this line of code really do? Pin
David Crow20-Apr-04 10:41
David Crow20-Apr-04 10:41 
AnswerRe: What does this line of code really do? Pin
axid3j1al20-Apr-04 17:22
axid3j1al20-Apr-04 17:22 
AnswerRe: What does this line of code really do? Pin
Mike Dimmick21-Apr-04 1:02
Mike Dimmick21-Apr-04 1:02 
GeneralSorting contents of CObList array Pin
Still learning how to code20-Apr-04 10:04
Still learning how to code20-Apr-04 10:04 

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.