Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ rant Pin
Joe Woodbury16-Jan-03 13:14
professionalJoe Woodbury16-Jan-03 13:14 
GeneralRe: VC++ rant (Hey Christian, you see this??) Pin
Tim Smith16-Jan-03 16:14
Tim Smith16-Jan-03 16:14 
GeneralRe: VC++ rant (Hey Christian, you see this??) Pin
Christian Graus16-Jan-03 18:13
protectorChristian Graus16-Jan-03 18:13 
GeneralRe: VC++ rant Pin
Christian Graus16-Jan-03 18:11
protectorChristian Graus16-Jan-03 18:11 
GeneralRe: VC++ rant Pin
Joe Woodbury16-Jan-03 20:16
professionalJoe Woodbury16-Jan-03 20:16 
GeneralRe: VC++ rant Pin
Tim Smith17-Jan-03 2:27
Tim Smith17-Jan-03 2:27 
Generalbuild my program Pin
arnaba16-Jan-03 11:24
arnaba16-Jan-03 11:24 
QuestionHow to debug this GetWindowPlacement problem Pin
ns16-Jan-03 10:12
ns16-Jan-03 10:12 
BOOL CWnd::GetWindowPlacement(WINDOWPLACEMENT* lpwndpl) const
{
	<code>ASSERT(::IsWindow(m_hWnd));</code>	
        lpwndpl->length = sizeof(WINDOWPLACEMENT);
	return ::GetWindowPlacement(m_hWnd, lpwndpl);
}


Crash says its not a window. However in my code I am getting a nonNUll pointer:

for (int i = 0 ; i <imageDisplayVectorsize ; i++)
	{

		CImageDisplay* imageDisplay =ImageDisplayVector[i];

		// Get the window's current size and position.
		imageDisplay->GetWindowPlacement(&wp);


I've used my ImageDisplayVector elsewhere as

int vecSize = ImageDisplayVector.size();
for (int i = 0; i < vecSize; i++)

{

CImageDisplay * pImageTemp = ImageDisplayVector[i];

    pImageTemp->ShowWindow(SW_SHOW);
}


and the windows show up (first I'd hidden them) with no problem. Which makes me think my pointer is fine.

SO why does the GetWindowPl think its not a window?

How shall I approach the debugging of this problem?

Appreciate your help,
ns
GeneralA weird behavior of a CScrollView Pin
Luis E. Cuadrado16-Jan-03 10:05
Luis E. Cuadrado16-Jan-03 10:05 
GeneralA peculiar scope problem Pin
ns16-Jan-03 9:46
ns16-Jan-03 9:46 
GeneralRe: A peculiar scope problem Pin
Neville Franks16-Jan-03 9:55
Neville Franks16-Jan-03 9:55 
GeneralRe: A peculiar scope problem Pin
ns16-Jan-03 9:57
ns16-Jan-03 9:57 
GeneralRe: A peculiar scope problem Pin
Taka Muraoka16-Jan-03 11:00
Taka Muraoka16-Jan-03 11:00 
GeneralRe: A peculiar scope problem Pin
peterchen16-Jan-03 12:27
peterchen16-Jan-03 12:27 
GeneralRe: A peculiar scope problem Pin
Mike Nordell16-Jan-03 12:46
Mike Nordell16-Jan-03 12:46 
GeneralRe: A peculiar scope problem Pin
Joe Woodbury16-Jan-03 13:22
professionalJoe Woodbury16-Jan-03 13:22 
GeneralRe: A peculiar scope problem Pin
Mike Nordell16-Jan-03 13:30
Mike Nordell16-Jan-03 13:30 
GeneralRe: A peculiar scope problem Pin
Joe Woodbury16-Jan-03 13:49
professionalJoe Woodbury16-Jan-03 13:49 
GeneralRe: A peculiar scope problem Pin
Mike Nordell16-Jan-03 12:23
Mike Nordell16-Jan-03 12:23 
GeneralRe: A peculiar scope problem Pin
peterchen16-Jan-03 12:30
peterchen16-Jan-03 12:30 
GeneralRe: A peculiar scope problem Pin
Mike Nordell16-Jan-03 12:41
Mike Nordell16-Jan-03 12:41 
GeneralRe: A peculiar scope problem Pin
Joe Woodbury16-Jan-03 13:34
professionalJoe Woodbury16-Jan-03 13:34 
GeneralDOXYGEN questions Pin
peterchen16-Jan-03 9:34
peterchen16-Jan-03 9:34 
GeneralRe: DOXYGEN questions Pin
Taka Muraoka16-Jan-03 11:08
Taka Muraoka16-Jan-03 11:08 
GeneralRe: DOXYGEN questions Pin
peterchen16-Jan-03 11:27
peterchen16-Jan-03 11:27 

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.