Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalownerdraw combobox Pin
13-Dec-00 22:11
suss13-Dec-00 22:11 
GeneralModeless dialogs can be reached even if there's one that is modal Pin
Joan M13-Dec-00 12:01
professionalJoan M13-Dec-00 12:01 
GeneralRe: Modeless dialogs can be reached even if there's one that is modal Pin
Michael Dunn13-Dec-00 19:28
sitebuilderMichael Dunn13-Dec-00 19:28 
GeneralBackground image problem Pin
13-Dec-00 11:18
suss13-Dec-00 11:18 
GeneralRe: Background image problem Pin
13-Dec-00 16:27
suss13-Dec-00 16:27 
GeneralUnusal Visual C++ behavior please help Pin
13-Dec-00 7:20
suss13-Dec-00 7:20 
GeneralRe: Unusal Visual C++ behavior please help Pin
Michael Dunn13-Dec-00 8:00
sitebuilderMichael Dunn13-Dec-00 8:00 
GeneralRe: Unusal Visual C++ behavior please help Pin
Ron Russell13-Dec-00 8:15
Ron Russell13-Dec-00 8:15 
Which line of code in OnChangeSpeed(..) is causing the assertion?

When you get the assertion, the message in the Abort/Retry/Ignore message box should tell you where the assertion is coming from. You can then track it back through the call stack.

Without knowing more about where the message is coming from and when you are receiving it, I would assume that it is coming off the initial dynamic data exchange operation when your dialog is being created. If this is the case, then you can try one (or both ) of:

Replace:

m_speed.GetWindowText(SomeValue2)

With:

if (::IsWindow(m_speed.GetSafeHwnd()))
{
m_speed.GetWindowText(SomeValue2)
}


Replace:

m_speed2.SetWindowText((LPCTSTR)SomeValue2)

With:

if (::IsWindow(m_speed2.GetSafeHwnd()))
{
m_speed2.SetWindowText((LPCTSTR)SomeValue2)
}


If this fixes your problem, then you will no that your routine is getting called before your control windows are actually getting created.

Ronald L. Russell Jr. (Ron)
rrussell@ygrest.com

GeneralRe: Unusal Visual C++ behavior please help Pin
13-Dec-00 9:41
suss13-Dec-00 9:41 
GeneralRe: Unusal Visual C++ behavior please help Pin
Ron Russell13-Dec-00 9:53
Ron Russell13-Dec-00 9:53 
GeneralHiding an application from the Tasklist Pin
Ron Russell13-Dec-00 6:14
Ron Russell13-Dec-00 6:14 
GeneralRe: Hiding an application from the Tasklist Pin
13-Dec-00 6:59
suss13-Dec-00 6:59 
GeneralRe: Hiding an application from the Tasklist Pin
Ron Russell13-Dec-00 7:42
Ron Russell13-Dec-00 7:42 
GeneralBackground Image on CListCtrl Pin
Kannan Kalyanaraman12-Dec-00 23:52
Kannan Kalyanaraman12-Dec-00 23:52 
QuestionUpdating Resources under Windows 98/Me???? Pin
12-Dec-00 22:11
suss12-Dec-00 22:11 
QuestionHow to create a window without title bar? Pin
Satervalley12-Dec-00 22:02
Satervalley12-Dec-00 22:02 
AnswerRe: How to create a window without title bar? Pin
Tim Deveaux14-Dec-00 13:27
Tim Deveaux14-Dec-00 13:27 
Questionhow do i make a dialog hidden *before* it gets shown? Pin
12-Dec-00 12:27
suss12-Dec-00 12:27 
AnswerRe: how do i make a dialog hidden *before* it gets shown? Pin
Erik Funkenbusch12-Dec-00 13:25
Erik Funkenbusch12-Dec-00 13:25 
GeneralPortable Encryption API Pin
Alvaro Mendez12-Dec-00 8:15
Alvaro Mendez12-Dec-00 8:15 
GeneralRe: Portable Encryption API Pin
13-Dec-00 7:09
suss13-Dec-00 7:09 
GeneralCalculating Time Pin
12-Dec-00 5:27
suss12-Dec-00 5:27 
GeneralAVIs for CAnimateCtrl Pin
Luis Barreira12-Dec-00 4:00
Luis Barreira12-Dec-00 4:00 
QuestionHow to display elapsing time Pin
leonwoo12-Dec-00 3:52
leonwoo12-Dec-00 3:52 
AnswerRe: How to display elapsing time Pin
NormDroid12-Dec-00 4:50
professionalNormDroid12-Dec-00 4:50 

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.