Click here to Skip to main content
16,011,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage (hWnd = 0) Pin
luckylourson20-Nov-01 1:27
luckylourson20-Nov-01 1:27 
GeneralSHBrowseForFolder and BIF_NONEWFOLDERBUTTON Pin
Maximilien19-Nov-01 7:56
Maximilien19-Nov-01 7:56 
GeneralRe: SHBrowseForFolder and BIF_NONEWFOLDERBUTTON Pin
Michael Dunn19-Nov-01 8:02
sitebuilderMichael Dunn19-Nov-01 8:02 
GeneralRe: SHBrowseForFolder and BIF_NONEWFOLDERBUTTON Pin
Mark Terrano30-Nov-01 6:31
Mark Terrano30-Nov-01 6:31 
QuestionFast scan binary file with STL? Pin
Todd Smith19-Nov-01 7:53
Todd Smith19-Nov-01 7:53 
GeneralPoor little orphan button Pin
Derek Lakin19-Nov-01 6:51
Derek Lakin19-Nov-01 6:51 
GeneralRe: Poor little orphan button Pin
Alvaro Mendez19-Nov-01 10:36
Alvaro Mendez19-Nov-01 10:36 
GeneralRe: Poor little orphan button Pin
Derek Lakin19-Nov-01 19:59
Derek Lakin19-Nov-01 19:59 
Alvaro,
Thanks for replying, it has been difficult trying to get some help with this problem.

Alvaro Mendez wrote:
From your last paragraph I gather that you have some memory corruption going on somewhere in your code.

I'm almost certain that this is happening, but I can't track down how or why. For example, in the DrawItem override for CButtonSSL there is a call to GetWindowText, which is obviously a CWnd function. When I step through the code everything appears to be fine in CButtonSSL (except that I can't expand the variable tree in the variables window above the COddButton parent), but then when I step into GetWindowText, the value for this, which is now the CWnd, is something like 0x00000403 and it is at this point that m_pCtrlSite is not NULL.

Alvaro Mendez wrote:
You may try setting a conditional breakpoint to stop when the address of m_pCtrlSite changes

It has not been possible to set an advanced breakpoint of this nature (and believe me I've tried for many hours Mad | :mad: ) because it doesn't like trying to cast the expression beyond a COddButton.

I have looked at the articles you mentioned. CP was the first place I looked.

Any more ideas?

Derek Lakin.
Salamander Software Ltd.
GeneralRe: Poor little orphan button Pin
Alvaro Mendez20-Nov-01 8:10
Alvaro Mendez20-Nov-01 8:10 
GeneralRe: Poor little orphan button Pin
Derek Lakin20-Nov-01 23:32
Derek Lakin20-Nov-01 23:32 
GeneralRe: Poor little orphan button Pin
Derek Lakin22-Nov-01 0:54
Derek Lakin22-Nov-01 0:54 
GeneralDialog Box Problems Pin
19-Nov-01 6:29
suss19-Nov-01 6:29 
GeneralRe: Dialog Box Problems Pin
Carlos Antollini19-Nov-01 7:54
Carlos Antollini19-Nov-01 7:54 
GeneralRe: Dialog Box Problems Pin
Michael Dunn19-Nov-01 7:57
sitebuilderMichael Dunn19-Nov-01 7:57 
GeneralRe: Dialog Box Problems Pin
mvworld19-Nov-01 10:46
mvworld19-Nov-01 10:46 
GeneralPrinting - positioning problem Pin
pmarki19-Nov-01 6:09
pmarki19-Nov-01 6:09 
GeneralRe: Printing - positioning problem Pin
Rassman20-Nov-01 5:18
Rassman20-Nov-01 5:18 
GeneralMicrosoft FlexGrid Control 6.0 Pin
19-Nov-01 5:37
suss19-Nov-01 5:37 
GeneralRe: Microsoft FlexGrid Control 6.0 Pin
Carlos Antollini19-Nov-01 5:51
Carlos Antollini19-Nov-01 5:51 
Questionhow to move (drag) controls in the dialog? Pin
19-Nov-01 5:20
suss19-Nov-01 5:20 
AnswerRe: how to move (drag) controls in the dialog? Pin
Andres Manggini19-Nov-01 9:49
Andres Manggini19-Nov-01 9:49 
GeneralExplorer FolderView Pin
TusharKarsan19-Nov-01 5:07
TusharKarsan19-Nov-01 5:07 
QuestionWTL FormView: Where are the scrollbars? Pin
TusharKarsan19-Nov-01 4:37
TusharKarsan19-Nov-01 4:37 
GeneralUnsuported operations Pin
19-Nov-01 4:34
suss19-Nov-01 4:34 
GeneralRe: Unsuported operations Pin
moliate19-Nov-01 7:59
moliate19-Nov-01 7:59 

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.