Click here to Skip to main content
14,272,315 members

C / C++ / MFC

 
AnswerRe: Technical Interview Preparation Pin
CPallini22-Jul-18 21:52
mveCPallini22-Jul-18 21:52 
QuestionAPI to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
AroraSaurabh19-Jul-18 6:59
memberAroraSaurabh19-Jul-18 6:59 
GeneralRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Richard MacCutchan19-Jul-18 21:24
protectorRichard MacCutchan19-Jul-18 21:24 
AnswerRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Randor 20-Jul-18 21:30
professional Randor 20-Jul-18 21:30 
QuestionRegistering a IOT Device in C++ Pin
Member 1391379016-Jul-18 9:20
memberMember 1391379016-Jul-18 9:20 
GeneralRe: Registering a IOT Device in C++ Pin
Richard MacCutchan17-Jul-18 2:03
protectorRichard MacCutchan17-Jul-18 2:03 
QuestionCChildFrame in separate thread Pin
_Flaviu15-Jul-18 22:06
member_Flaviu15-Jul-18 22:06 
AnswerRe: CChildFrame in separate thread Pin
Jochen Arndt15-Jul-18 22:37
mveJochen Arndt15-Jul-18 22:37 
The frames belong to the GUI and should be therefore executed in the GUI (main) thread. I even don't think that it is possible to run the child frames in another thread due to the relationship to the main frame, and the views. Even if it is possible, it would be a nightmare to make it all thread safe.

But you can execute specific operations within the child frames or the views in separate threads. A common method is to use worker threads for longer running jobs. Because such threads can not directly access (MFC) UI elements, they have to post (user defined) messages to update UI elements.
GeneralRe: CChildFrame in separate thread Pin
_Flaviu15-Jul-18 22:52
member_Flaviu15-Jul-18 22:52 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt15-Jul-18 23:21
mveJochen Arndt15-Jul-18 23:21 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 0:36
member_Flaviu16-Jul-18 0:36 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt16-Jul-18 0:41
mveJochen Arndt16-Jul-18 0:41 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 1:27
member_Flaviu16-Jul-18 1:27 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt16-Jul-18 2:49
mveJochen Arndt16-Jul-18 2:49 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 3:07
member_Flaviu16-Jul-18 3:07 
QuestionTrace a CString Pin
_Flaviu14-Jul-18 22:26
member_Flaviu14-Jul-18 22:26 
AnswerRe: Trace a CString Pin
Richard MacCutchan15-Jul-18 2:00
protectorRichard MacCutchan15-Jul-18 2:00 
SuggestionRe: Trace a CString Pin
David Crow15-Jul-18 16:27
memberDavid Crow15-Jul-18 16:27 
GeneralRe: Trace a CString Pin
_Flaviu15-Jul-18 22:04
member_Flaviu15-Jul-18 22:04 
SuggestionRe: Trace a CString Pin
David Crow16-Jul-18 1:48
memberDavid Crow16-Jul-18 1:48 
AnswerRe: Trace a CString Pin
Jochen Arndt15-Jul-18 23:12
mveJochen Arndt15-Jul-18 23:12 
Questionmapping pthread id to custom id Pin
meerokh13-Jul-18 5:51
membermeerokh13-Jul-18 5:51 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan13-Jul-18 20:48
protectorRichard MacCutchan13-Jul-18 20:48 
GeneralRe: mapping pthread id to custom id Pin
meerokh14-Jul-18 0:24
membermeerokh14-Jul-18 0:24 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan14-Jul-18 3:36
protectorRichard MacCutchan14-Jul-18 3:36 

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.