Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual Studio 2005 not hitting breakpoints. Pin
Richard MacCutchan8-Dec-09 10:24
mveRichard MacCutchan8-Dec-09 10:24 
GeneralRe: Visual Studio 2005 not hitting breakpoints. Pin
Like2Byte8-Dec-09 10:53
Like2Byte8-Dec-09 10:53 
GeneralRe: Visual Studio 2005 not hitting breakpoints. Pin
Richard MacCutchan8-Dec-09 11:01
mveRichard MacCutchan8-Dec-09 11:01 
GeneralRe: Visual Studio 2005 not hitting breakpoints. Pin
Like2Byte8-Dec-09 11:08
Like2Byte8-Dec-09 11:08 
QuestionAnnoying problem with VISTA and Win7 and above? Pin
Kushagra Tiwari8-Dec-09 8:38
Kushagra Tiwari8-Dec-09 8:38 
AnswerRe: Annoying problem with VISTA and Win7 and above? Pin
Richard MacCutchan8-Dec-09 9:57
mveRichard MacCutchan8-Dec-09 9:57 
AnswerRe: Annoying problem with VISTA and Win7 and above? Pin
Rolf Kristensen10-Dec-09 11:23
Rolf Kristensen10-Dec-09 11:23 
QuestionSeparating business and presentation logic in different threads Pin
crewchill8-Dec-09 7:42
crewchill8-Dec-09 7:42 
Hi fellow CP-ers.

I worked with monstrous legacy C/C++ code where the GUI and business logic components are executed in the same thread. It worked fine, but the GUI is similar to Win 3.1 style: ugly clunky and yucky (sorry for hardcore 3.1-ers!).

Since then we upgraded our system with new GUI tools and processors. We decided to take this opportunity to untangle the system. We put all the biz logic in one thread (this hosts multiple apps, drawing or non-drawing), and all related GUI items (rendering loop, animations, and all its support classes) on the other thread. IMO, this is very beneficial since for example the button may animate fade in or out, etc, while the biz logic thread can still host other non-drawing applications. Note that we will try to do as much as we can locally in rendering thread if it doesn't involve biz logic (ex: highlights, international strings, etc). If it requires data, it will post to biz logic thread and retrieve it.

So this new guy came in and decided to put all the GUI classes back to the business logic thread. Rendering is still done on other thread, but now for every single little graphics primitives (think set colors, move obj to x,y, set transparency, etc) we need to send out a message. His reasoning is that it's too clumsy to post handler messages to other thread, he prefers call back, and he said it's common for most GUI frameworks to have this synchronous behavior.

Can someone help me explain why the synchronicity of button handler is so important? Am I missing something?

Don't we already have similar model of biz logic / presentation separation in present day web technology? (i.e. Fancy flash animations in your web browser sending/fetching data from the server, or AJAX heavily used by Google apps?)
AnswerRe: Separating business and presentation logic in different threads [modified] Pin
Rolf Kristensen10-Dec-09 11:35
Rolf Kristensen10-Dec-09 11:35 
QuestionWhat Will Happen? Two Projects Merging together that both access a DLL Pin
Greg Mort8-Dec-09 5:44
Greg Mort8-Dec-09 5:44 
AnswerRe: What Will Happen? Two Projects Merging together that both access a DLL Pin
PJ Arends8-Dec-09 7:24
professionalPJ Arends8-Dec-09 7:24 
Questionprogram too big to fit in memory ??? Pin
a04.lqd8-Dec-09 5:01
a04.lqd8-Dec-09 5:01 
AnswerRe: program too big to fit in memory ??? Pin
Chris Losinger8-Dec-09 5:11
professionalChris Losinger8-Dec-09 5:11 
QuestionRe: program too big to fit in memory ??? Pin
David Crow8-Dec-09 5:58
David Crow8-Dec-09 5:58 
AnswerRe: program too big to fit in memory ??? Pin
a04.lqd8-Dec-09 13:18
a04.lqd8-Dec-09 13:18 
AnswerRe: program too big to fit in memory ??? Pin
PCuong19838-Dec-09 14:39
professionalPCuong19838-Dec-09 14:39 
GeneralRe: program too big to fit in memory ??? Pin
a04.lqd8-Dec-09 15:09
a04.lqd8-Dec-09 15:09 
Questionwhat are these error ? Pin
a04.lqd8-Dec-09 4:18
a04.lqd8-Dec-09 4:18 
AnswerRe: what are these error ? Pin
Rajesh R Subramanian8-Dec-09 4:21
professionalRajesh R Subramanian8-Dec-09 4:21 
AnswerRe: what are these error ? Pin
a04.lqd8-Dec-09 4:34
a04.lqd8-Dec-09 4:34 
GeneralRe: what are these error ? Pin
Maximilien8-Dec-09 4:37
Maximilien8-Dec-09 4:37 
AnswerRe: what are these error ? Pin
David Crow8-Dec-09 4:53
David Crow8-Dec-09 4:53 
QuestionProgram Data Limits Pin
Grahamfff8-Dec-09 4:05
Grahamfff8-Dec-09 4:05 
QuestionRe: Program Data Limits Pin
Rajesh R Subramanian8-Dec-09 4:18
professionalRajesh R Subramanian8-Dec-09 4:18 
AnswerRe: Program Data Limits Pin
Grahamfff8-Dec-09 4:35
Grahamfff8-Dec-09 4:35 

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.