Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani3-Aug-10 22:53
Joseph Marzbani3-Aug-10 22:53 
GeneralRe: what is "wofstream" useful for?!! Pin
Richard MacCutchan4-Aug-10 3:26
mveRichard MacCutchan4-Aug-10 3:26 
QuestionTooltips can't be shown Pin
gaspher3-Aug-10 2:47
gaspher3-Aug-10 2:47 
QuestionRe: Tooltips can't be shown Pin
David Crow3-Aug-10 3:18
David Crow3-Aug-10 3:18 
AnswerRe: Tooltips can't be shown Pin
gaspher3-Aug-10 3:37
gaspher3-Aug-10 3:37 
GeneralRe: Tooltips can't be shown Pin
David Crow3-Aug-10 3:43
David Crow3-Aug-10 3:43 
QuestionHandling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 0:54
MuraliKrishnaP3-Aug-10 0:54 
AnswerRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 1:10
Aescleal3-Aug-10 1:10 
I'd go for using the active object pattern [1] - that gives you parallism without bending your current code to much. "Just" make the classes with the long execution time methods active. It's similar to using worker threads but the implementation of those worker threads are (mostly) hidden within the classes so they appear like normal objects.

The bad news is that writing (or borrowing) the scaffolding to implement active objects can be a bit of a pain in the bum. However once you've done it it's fairly easy to make any class active by implementing a fairly thin proxy class to the app. Perhaps try it with a toy application and see if it's worth the pain?

Cheers,

Ash

[1] In brief the idea of the active object pattern is that every object has it's own worker thread. When method calls are made on the object the calls get queued and run whenever the worker thread is next idle. Return values are dished back to the calling function as futures - which look like normal variables but block when read until their completing worker thread signals them.

http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf[^] describes the pattern but it may take several readings to avoid the "whoaaa, this is well over complicated!" feeling.
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:32
MuraliKrishnaP3-Aug-10 2:32 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:43
MuraliKrishnaP3-Aug-10 2:43 
GeneralRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 5:31
Aescleal3-Aug-10 5:31 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP6-Aug-10 10:03
MuraliKrishnaP6-Aug-10 10:03 
AnswerRe: Handling Abort for Long running operations in MFC Pin
«_Superman_»3-Aug-10 15:57
professional«_Superman_»3-Aug-10 15:57 
Questionproblem using ShellExecute to open folder Pin
Rahul Vaishnav2-Aug-10 23:51
Rahul Vaishnav2-Aug-10 23:51 
AnswerRe: problem using ShellExecute to open folder PinPopular
enhzflep3-Aug-10 0:10
enhzflep3-Aug-10 0:10 
GeneralRe: problem using ShellExecute to open folder Pin
Rahul Vaishnav3-Aug-10 0:14
Rahul Vaishnav3-Aug-10 0:14 
AnswerRe: problem using ShellExecute to open folder Pin
Shivanand Gupta5-Aug-10 1:09
Shivanand Gupta5-Aug-10 1:09 
QuestionThis application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani2-Aug-10 22:52
reza toorani2-Aug-10 22:52 
AnswerRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
Cedric Moonen2-Aug-10 22:54
Cedric Moonen2-Aug-10 22:54 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani2-Aug-10 23:48
reza toorani2-Aug-10 23:48 
AnswerRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 0:09
mveKarstenK3-Aug-10 0:09 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani3-Aug-10 0:28
reza toorani3-Aug-10 0:28 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 0:36
mveKarstenK3-Aug-10 0:36 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
reza toorani3-Aug-10 1:08
reza toorani3-Aug-10 1:08 
GeneralRe: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. Pin
KarstenK3-Aug-10 1:15
mveKarstenK3-Aug-10 1:15 

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.