Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
mybm120-Aug-14 0:42
mybm120-Aug-14 0:42 
AnswerRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
David Crow20-Aug-14 3:15
David Crow20-Aug-14 3:15 
QuestionVariable not same across process in DLL Pin
peterasloan17-Aug-14 18:49
peterasloan17-Aug-14 18:49 
AnswerRe: Variable not same across process in DLL Pin
Richard MacCutchan17-Aug-14 20:39
mveRichard MacCutchan17-Aug-14 20:39 
AnswerRe: Variable not same across process in DLL Pin
leon de boer18-Aug-14 5:18
leon de boer18-Aug-14 5:18 
QuestionCall MFC regular dll from other app Pin
john563217-Aug-14 1:56
john563217-Aug-14 1:56 
AnswerRe: Call MFC regular dll from other app Pin
«_Superman_»17-Aug-14 6:10
professional«_Superman_»17-Aug-14 6:10 
AnswerRe: Call MFC regular dll from other app Pin
leon de boer18-Aug-14 5:28
leon de boer18-Aug-14 5:28 
The short answer is between very difficult and you can't do this because not all of MFC is thread safe.

There are specific parts of MFC designed for threading general background

http://msdn.microsoft.com/en-us/library/975t8ks0%28v=vs.90%29.aspx[^]

The tips page will give you the specific problem

http://msdn.microsoft.com/en-us/library/h14y172e%28v=vs.90%29.aspx#_core_accessing_mfc_objects_from_non_2d_mfc_threads[^]

QUOTE:
If you have a multithreaded application that creates a thread in a way other than using a CWinThread object, you cannot access other MFC objects from that thread. In other words, if you want to access any MFC object from a secondary thread, you must create that thread with one of the methods described in Multithreading: Creating User-Interface Threads or Multithreading: Creating Worker Threads. These methods are the only ones that allow the class library to initialize the internal variables necessary to handle multithreaded applications.

In vino veritas

QuestionHow manage the lose focus from CListCtrl Control Pin
Drakesal16-Aug-14 20:45
Drakesal16-Aug-14 20:45 
AnswerRe: How manage the lose focus from CListCtrl Control Pin
SoMad16-Aug-14 21:10
professionalSoMad16-Aug-14 21:10 
GeneralRe: How manage the lose focus from CListCtrl Control Pin
Drakesal16-Aug-14 21:12
Drakesal16-Aug-14 21:12 
GeneralRe: How manage the lose focus from CListCtrl Control Pin
SoMad16-Aug-14 21:57
professionalSoMad16-Aug-14 21:57 
GeneralRe: How manage the lose focus from CListCtrl Control Pin
Drakesal16-Aug-14 22:24
Drakesal16-Aug-14 22:24 
GeneralRe: How manage the lose focus from CListCtrl Control Pin
SoMad16-Aug-14 23:07
professionalSoMad16-Aug-14 23:07 
QuestionCan't read certain registry keys Pin
Daniel 'Tak' M.16-Aug-14 9:45
Daniel 'Tak' M.16-Aug-14 9:45 
AnswerRe: Can't read certain registry keys Pin
Richard Andrew x6416-Aug-14 10:06
professionalRichard Andrew x6416-Aug-14 10:06 
GeneralRe: Can't read certain registry keys Pin
Daniel 'Tak' M.16-Aug-14 10:10
Daniel 'Tak' M.16-Aug-14 10:10 
AnswerRe: Can't read certain registry keys Pin
Richard Andrew x6416-Aug-14 10:18
professionalRichard Andrew x6416-Aug-14 10:18 
GeneralRe: Can't read certain registry keys Pin
Daniel 'Tak' M.16-Aug-14 10:31
Daniel 'Tak' M.16-Aug-14 10:31 
AnswerRe: Can't read certain registry keys Pin
Richard Andrew x6416-Aug-14 10:37
professionalRichard Andrew x6416-Aug-14 10:37 
GeneralRe: Can't read certain registry keys Pin
Daniel 'Tak' M.16-Aug-14 10:42
Daniel 'Tak' M.16-Aug-14 10:42 
GeneralRe: Can't read certain registry keys Pin
Richard Andrew x6416-Aug-14 10:47
professionalRichard Andrew x6416-Aug-14 10:47 
GeneralRe: Can't read certain registry keys Pin
Daniel 'Tak' M.16-Aug-14 10:49
Daniel 'Tak' M.16-Aug-14 10:49 
GeneralRe: Can't read certain registry keys Pin
Richard Andrew x6416-Aug-14 10:52
professionalRichard Andrew x6416-Aug-14 10:52 
QuestionUsing MFC Dev Studio 97 with VC++ 5.0 in Win7 Pin
Bram van Kampen15-Aug-14 14:09
Bram van Kampen15-Aug-14 14:09 

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.