Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan i save font in my MFC application? Pin
Immunity1831-May-06 10:07
Immunity1831-May-06 10:07 
AnswerRe: Can i save font in my MFC application? Pin
Benoy Bose31-May-06 19:00
Benoy Bose31-May-06 19:00 
GeneralRe: Can i save font in my MFC application? Pin
NiceNaidu31-May-06 20:10
NiceNaidu31-May-06 20:10 
Questionenumport problem Pin
wang200731-May-06 9:57
wang200731-May-06 9:57 
AnswerRe: enumport problem Pin
David Crow31-May-06 10:11
David Crow31-May-06 10:11 
AnswerRe: enumport problem Pin
NiceNaidu31-May-06 19:32
NiceNaidu31-May-06 19:32 
QuestionSocket Class to use with MFC [modified] Pin
SPowers31-May-06 9:48
SPowers31-May-06 9:48 
AnswerRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:13
Zac Howland31-May-06 10:13 
SPowers wrote:
I should also say that the GUI and Socket are extremely intertwined. IE... a button click basically just sends a packet to my server and as I accept a packet I simply display it on the screen. This is why moving it to another thread would prove difficult.


Tying communication processes closely with GUIs is not a good idea. Neither will ever perform optimally. If this is your own code, I would rewrite it so that the socket's receive is caught in a separate thread that spawns an event for your GUI to catch (either using an Event or a Windows Message).

If you absolutely must leave it the way it is, try increasing the buffer size for the data you pull in the OnReceive handler.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: Socket Class to use with MFC [modified] Pin
SPowers31-May-06 10:19
SPowers31-May-06 10:19 
GeneralRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:37
Zac Howland31-May-06 10:37 
Questionusing a dll to run the graphics of a scr Pin
reasley31-May-06 9:37
reasley31-May-06 9:37 
AnswerRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:10
David Crow31-May-06 10:10 
QuestionRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:16
reasley31-May-06 10:16 
QuestionRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:29
David Crow31-May-06 10:29 
AnswerRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:31
reasley31-May-06 10:31 
AnswerRe: using a dll to run the graphics of a scr [modified] Pin
Zac Howland31-May-06 10:30
Zac Howland31-May-06 10:30 
GeneralRe: using a dll to run the graphics of a scr [modified] Pin
reasley31-May-06 10:35
reasley31-May-06 10:35 
QuestionVisual Studio 2005, Multithreading option? Pin
Yonggoo31-May-06 9:02
Yonggoo31-May-06 9:02 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Cedric Moonen31-May-06 9:26
Cedric Moonen31-May-06 9:26 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Zac Howland31-May-06 10:04
Zac Howland31-May-06 10:04 
AnswerRe: Visual Studio 2005, Multithreading option? [modified] Pin
Yonggoo31-May-06 10:56
Yonggoo31-May-06 10:56 
QuestionPrecision Timing? Sleep(1)=15 millisecs !! Pin
Robert Palma Jr.31-May-06 8:57
Robert Palma Jr.31-May-06 8:57 
AnswerRe: Precision Timing? Sleep(1)=15 millisecs !! Pin
David Crow31-May-06 9:16
David Crow31-May-06 9:16 
AnswerRe: Precision Timing? Sleep(1)=15 millisecs !! Pin
Zac Howland31-May-06 9:23
Zac Howland31-May-06 9:23 
QuestionThreads Pin
Anthony988731-May-06 8:56
Anthony988731-May-06 8:56 

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.