Click here to Skip to main content
15,896,730 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDACL. Is it necessary to know ? Pin
30-Apr-04 1:25
suss30-Apr-04 1:25 
AnswerRe: DACL. Is it necessary to know ? Pin
Mike Dimmick30-Apr-04 1:52
Mike Dimmick30-Apr-04 1:52 
GeneralRe: DACL. Is it necessary to know ? Pin
Member 101882330-Apr-04 1:59
Member 101882330-Apr-04 1:59 
GeneralRe: DACL. Is it necessary to know ? Pin
David Crow30-Apr-04 3:11
David Crow30-Apr-04 3:11 
GeneralRe: DACL. Is it necessary to know ? Pin
Blake Miller30-Apr-04 6:09
Blake Miller30-Apr-04 6:09 
GeneralGetAddress of IPAddress Control crashing.. Pin
IrishSonic30-Apr-04 1:13
IrishSonic30-Apr-04 1:13 
GeneralRe: GetAddress of IPAddress Control crashing.. Pin
jmkhael30-Apr-04 1:53
jmkhael30-Apr-04 1:53 
GeneralRe: GetAddress of IPAddress Control crashing.. Pin
Mike Dimmick30-Apr-04 2:05
Mike Dimmick30-Apr-04 2:05 
Did you try running under the debugger and hitting Retry when prompted? That takes you to the line firing the assertion.

Also, look in the vc7\atlmfc\include directory under Visual Studio .NET's install directory.

The source line reads:
_AFXCMN_INLINE BOOL CIPAddressCtrl::IsBlank() const
	{ ASSERT(::IsWindow(m_hWnd)); return (BOOL) ::SendMessage(m_hWnd, IPM_ISBLANK, 0, 0L); }
This indicates that you tried to call it on an object whose m_hWnd member isn't a valid window handle. Usually this means that either you tried to use an object you haven't initialised (m_hWnd is NULL), that you stored a pointer returned from GetDlgItem and then later tried to use that pointer in a different message handler, or, more rarely, that some kind of memory corruption has occurred (typically through a buffer overrun). You'll also get problems passing CWnd pointers between threads, particularly if they point to temporary objects.

You must not store pointers to temporary CWnd objects. Any MFC function returning a CWnd* may return a pointer to a temporary object; these temporary objects are cleaned up the next time your program is idle. If you need to reference a window for a period longer than the duration of the current function, create a CWnd-derived object and call Attach.

You can use the DDX_Control function in your DoDataExchange override to automatically hook up a member variable to a control. You can do this through the Visual Studio environment by right-clicking the control in the dialog designer and choosing Add Variable.

Stability. What an interesting concept. -- Chris Maunder
GeneralFinding handles to dialogs Pin
V.30-Apr-04 0:51
professionalV.30-Apr-04 0:51 
GeneralRe: Finding handles to dialogs Pin
mangellj30-Apr-04 3:25
mangellj30-Apr-04 3:25 
GeneralRe: Finding handles to dialogs Pin
V.3-May-04 4:09
professionalV.3-May-04 4:09 
GeneralRe: Finding handles to dialogs Pin
David Crow30-Apr-04 3:30
David Crow30-Apr-04 3:30 
GeneralActive X subclassing Pin
rw10430-Apr-04 0:00
rw10430-Apr-04 0:00 
Generalinterop com client and .net server Pin
mrmgsm29-Apr-04 23:21
mrmgsm29-Apr-04 23:21 
GeneralRe: interop com client and .net server Pin
Mike Dimmick30-Apr-04 2:25
Mike Dimmick30-Apr-04 2:25 
GeneralDLL Help. At the end of my tether! Pin
xsive29-Apr-04 22:59
xsive29-Apr-04 22:59 
GeneralRe: DLL Help. At the end of my tether! Pin
Mike Dimmick30-Apr-04 2:19
Mike Dimmick30-Apr-04 2:19 
GeneralSize of CRichEditCtrl Pin
GermanGeorge29-Apr-04 22:27
GermanGeorge29-Apr-04 22:27 
GeneralRe: Size of CRichEditCtrl Pin
David Crow30-Apr-04 3:40
David Crow30-Apr-04 3:40 
GeneralRe: Size of CRichEditCtrl Pin
GermanGeorge2-May-04 20:00
GermanGeorge2-May-04 20:00 
GeneralFile Association Pin
Monty229-Apr-04 22:19
Monty229-Apr-04 22:19 
GeneralRe: File Association Pin
Monty230-Apr-04 2:41
Monty230-Apr-04 2:41 
GeneralRe: File Association Pin
David Crow30-Apr-04 3:46
David Crow30-Apr-04 3:46 
GeneralRe: File Association Pin
PJ Arends30-Apr-04 4:19
professionalPJ Arends30-Apr-04 4:19 
GeneralRe: File Association Pin
Monty230-Apr-04 18:38
Monty230-Apr-04 18:38 

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.