multiple initialization error

Feb 14, 2010 at 4:27am
Hi,
I have an error C2374: 'sizeTotal' : redefinition; multiple initialization. Could you help me figure out how to fix this error or where to start looking? I've gone throught this program and fixed multiple errors and now theres only one left. lol
Thanks much!

1
2
3
4
5
6
7
8
9
10
11
void CRingView::OnInitialUpdate()
{
	CScrollView::OnInitialUpdate();

	CSize sizeTotal;
	CSize sizeLine(500, 500);
	CSize sizePage(5000, 5000);
	CSize sizeTotal(216000, 27900);
	SetScrollSizes(MM_HIMETRIC, sizeTotal, sizePage, sizeLine);

}
Feb 14, 2010 at 4:55am
Look at lines 5 and 8.
Feb 14, 2010 at 5:14am
thank you so much, I just got rid of line 5 and it worked.
Topic archived. No new replies allowed.