SolvedC2397 Error

Posts 1–2 of 2 · Page 1 of 1
C2397 Error
Getting this error:

conversation from 'float' to LONG' requires a narrowing conversation


Code with errors

Code:
 this->TextPosition = RECT{ Position.left + 3, Position.top + Height/2 + CMyWindow::FontHeight/2 + 3, Position.right, Position.bottom }; 

this->TextPosition = RECT{ Position.left + 3, Position.top + Height / 2 + CMyWindow::FontHeight / 2 + 3, Position.right, Position.bottom }; 

this->TextPosition = RECT{ Position.left + 3, Position.top + Height / 2 + CMyWindow::FontHeight / 2 + 3, Position.right, Position.bottom }; 

this->TextPosition = RECT{ Position.left + 3, Position.top + Height / 2 + CMyWindow::FontHeight / 2 + 3, Position.right, Position.bottom }; 

this->AddPosition = RECT{ this->Position.right - (AddWidth + 5), this->Position.top + 5, this->Position.right - 5, this->Position.bottom - 5 };
	this->SubPosition = RECT{ this->AddPosition.right - (SubWidth + 12), this->Position.top + 5, this->AddPosition.right - 12, this->Position.bottom - 5 };

this->TextPosition = RECT{ Position.left + 3, Position.top + Height / 2 + CMyWindow::FontHeight / 2 + 3, Position.right, Position.bottom }; 

this->AddPosition = RECT{ this->Position.right - (AddWidth + 5), this->Position.top + 5, this->Position.right - 5, this->Position.bottom - 5 };
	this->SubPosition = RECT{ this->AddPosition.right - (SubWidth + 12), this->Position.top + 5, this->AddPosition.right - 12, this->Position.bottom - 5 };
If anyone has a solution it would be much appreciated.

Code:
reinterpret_cast<long>(...)
No respone from OP, assumed Solved.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us