Click here to Skip to main content
15,924,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisable/Enable newly created caption button Pin
ksrameshkanth7-Mar-07 17:41
ksrameshkanth7-Mar-07 17:41 
AnswerRe: Disable/Enable newly created caption button Pin
prasad_som7-Mar-07 18:34
prasad_som7-Mar-07 18:34 
QuestionHow can I make my main window resizable in win32? Pin
amitmistry_petlad 7-Mar-07 17:37
amitmistry_petlad 7-Mar-07 17:37 
AnswerRe: How can I make my main window resizable in win32? Pin
Hamid_RT7-Mar-07 17:39
Hamid_RT7-Mar-07 17:39 
GeneralRe: How can I make my main window resizable in win32? Pin
amitmistry_petlad 7-Mar-07 17:46
amitmistry_petlad 7-Mar-07 17:46 
AnswerRe: How can I make my main window resizable in win32? Pin
Paresh Chitte7-Mar-07 18:30
Paresh Chitte7-Mar-07 18:30 
AnswerRe: How can I make my main window resizable in win32? Pin
Nibu babu thomas7-Mar-07 18:35
Nibu babu thomas7-Mar-07 18:35 
QuestionUpdateAllViews() in Multithreaded App Pin
Dalfxxx7-Mar-07 16:48
Dalfxxx7-Mar-07 16:48 
I have a VC++ SDI motor control application that communicates with a motor control board over a serial cable. The application is multi-threaded. Communication with the board uses sending and receiving threads. I can send commands and receive status without issues. The design is a 2 pane, split-window application. Generally the leftmost pane is a FormView containing motor controls and the rightmost pane is a CScrollView to show motor status graphically.

The OpenLp feature of the App allows the user to manipulate sliders in the leftmost pane while viewing actual motor speed in the rightmost pane. This portion of the App is selected via a menu {Window/OpenLp} which starts a thread to periodically update the right pane by issuing motor commands to get status and calling UpdateAllViews() to show the results.

My problem: When I try to use a periodic call to UpdateAllViews(NULL) within this thread to accomplish the graphics in the rightmost pane it causes an immediate ASSERT.

Line: (ASSERT(pMap != NULL);
Routine: CWnd::AssertValid()
File:
AnswerRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery8-Mar-07 8:32
Mark Salsbery8-Mar-07 8:32 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Blake Miller9-Mar-07 5:33
Blake Miller9-Mar-07 5:33 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery9-Mar-07 11:25
Mark Salsbery9-Mar-07 11:25 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Dalfxxx9-Mar-07 10:28
Dalfxxx9-Mar-07 10:28 
GeneralRe: UpdateAllViews() in Multithreaded App Pin
Mark Salsbery9-Mar-07 11:29
Mark Salsbery9-Mar-07 11:29 
QuestionNamed pipe question Pin
mhp1307-Mar-07 15:34
mhp1307-Mar-07 15:34 
AnswerRe: Named pipe question Pin
Mark Salsbery7-Mar-07 16:27
Mark Salsbery7-Mar-07 16:27 
QuestionAssociate menu with dialog boxes on a tab control Pin
Trevy7-Mar-07 15:05
Trevy7-Mar-07 15:05 
AnswerRe: Associate menu with dialog boxes on a tab control Pin
Nibu babu thomas7-Mar-07 16:21
Nibu babu thomas7-Mar-07 16:21 
Questionc++ list sorting Pin
mehmetned7-Mar-07 14:36
mehmetned7-Mar-07 14:36 
AnswerRe: c++ list sorting Pin
Stephen Hewitt7-Mar-07 15:34
Stephen Hewitt7-Mar-07 15:34 
QuestionBase class to subclass conversion Pin
mehmetned7-Mar-07 13:10
mehmetned7-Mar-07 13:10 
AnswerRe: Base class to subclass conversion Pin
Stephen Hewitt7-Mar-07 15:42
Stephen Hewitt7-Mar-07 15:42 
Questionreturn a bitmap Pin
Zapacila7-Mar-07 10:51
Zapacila7-Mar-07 10:51 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 17:27
Paresh Chitte7-Mar-07 17:27 
GeneralRe: return a bitmap Pin
Zapacila7-Mar-07 18:31
Zapacila7-Mar-07 18:31 
AnswerRe: return a bitmap Pin
Paresh Chitte7-Mar-07 20:17
Paresh Chitte7-Mar-07 20:17 

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.