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

C / C++ / MFC

 
QuestionActive X object security with CDHtmlDialog? Pin
Jim Howard12-Feb-04 9:35
Jim Howard12-Feb-04 9:35 
GeneralCListCtrl header alignment Pin
vancouver77712-Feb-04 9:01
vancouver77712-Feb-04 9:01 
Questionfprintf allowed in main dialog? Pin
rmnowick12-Feb-04 8:42
rmnowick12-Feb-04 8:42 
AnswerRe: fprintf allowed in main dialog? Pin
rmnowick12-Feb-04 9:19
rmnowick12-Feb-04 9:19 
GeneralRe: fprintf allowed in main dialog? Pin
David Crow13-Feb-04 4:02
David Crow13-Feb-04 4:02 
GeneralUpdating View from WinThread Pin
J Guds12-Feb-04 8:01
J Guds12-Feb-04 8:01 
GeneralRe: Updating View from WinThread Pin
David Crow12-Feb-04 8:16
David Crow12-Feb-04 8:16 
GeneralRe: Updating View from WinThread Pin
chifor13-Feb-04 4:07
chifor13-Feb-04 4:07 
I suggest you to take a luck at example from “msdn” documentation “MTMDI” that demonstrates an MFC User Interface Thread. For avoiding potential problems when programming multithreaded applications you need to respect some rolls or programming tips that is also described in “mfc” documentation.
Ex: - You can't have two threads manipulating the same object.., if you need this you need to protect such access with appropriate Win32 synchronization mechanisms...
- A thread can access only MFC objects that it created, a worker thread cannot perform a calculation and then call a document’s “UpdateAllViews” member function to have the windows that contain views on the new data modified, because the map from CWnd objects to HWNDs is local to the primary thread. There are several ways around this problem: you can pass individual handles (such as an HWND) rather than C++ objects to the worker thread, or you can create new user-defined messages corresponding to the different tasks your worker threads will be performing and post these messages to the application’s main window using PostMessage.

If this little help is not enough for your problem send me a sample of your code and I will help you.

CC.
GeneralMissing SysTray Icon in Win2k Pin
DazedAndConfused12-Feb-04 6:49
DazedAndConfused12-Feb-04 6:49 
GeneralRe: Missing SysTray Icon in Win2k Pin
DazedAndConfused12-Feb-04 8:00
DazedAndConfused12-Feb-04 8:00 
GeneralRe: Missing SysTray Icon in Win2k Pin
Anonymous12-Feb-04 8:30
Anonymous12-Feb-04 8:30 
GeneralVisual C++ to Web Pin
Cyrus Scott12-Feb-04 6:49
sussCyrus Scott12-Feb-04 6:49 
GeneralRe: Visual C++ to Web Pin
Jörgen Sigvardsson12-Feb-04 8:05
Jörgen Sigvardsson12-Feb-04 8:05 
GeneralRe: Visual C++ to Web Pin
basementman12-Feb-04 9:56
basementman12-Feb-04 9:56 
GeneralRe: Visual C++ to Web Pin
Jörgen Sigvardsson12-Feb-04 11:37
Jörgen Sigvardsson12-Feb-04 11:37 
QuestionHow to get Command Lines for a Dialog-based applications Pin
hongheo7612-Feb-04 6:09
hongheo7612-Feb-04 6:09 
AnswerRe: How to get Command Lines for a Dialog-based applications Pin
John M. Drescher12-Feb-04 6:26
John M. Drescher12-Feb-04 6:26 
AnswerRe: How to get Command Lines for a Dialog-based applications Pin
David Crow12-Feb-04 6:28
David Crow12-Feb-04 6:28 
AnswerRe: How to get Command Lines for a Dialog-based applications Pin
Abin12-Feb-04 8:13
Abin12-Feb-04 8:13 
AnswerRe: How to get Command Lines for a Dialog-based applications Pin
basementman12-Feb-04 10:54
basementman12-Feb-04 10:54 
AnswerRe: How to get Command Lines for a Dialog-based applications Pin
hongheo7612-Feb-04 12:38
hongheo7612-Feb-04 12:38 
GeneralASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least) Pin
krugger12-Feb-04 6:00
krugger12-Feb-04 6:00 
GeneralRe: ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least) Pin
Steve S12-Feb-04 6:10
Steve S12-Feb-04 6:10 
GeneralWSAIoctl with SIO_RCVALL in WINNT Pin
Anonymous12-Feb-04 5:51
Anonymous12-Feb-04 5:51 
GeneralRe: WSAIoctl with SIO_RCVALL in WINNT Pin
valikac12-Feb-04 12:24
valikac12-Feb-04 12:24 

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.