C++ cast to D cast Part 2

BLS nanali at nospam-wanadoo.fr
Sat Sep 22 04:15:47 PDT 2007


Hi Bill.
Just something Regan and I allready have discussed ... but we are not 
sure about .

C++
CWin* pActive= 
reinterpret_cast<CWin*>((HWND)::GetWindowLong(msg.hwnd,GWL_USERDATA)); 


D
CWin pActive = cast(CWin) cast(HWND)GetWindowLong(msg.hwnd,GWL_USERDATA);

where CWin is a class.
The problem here is that pActive in D is a reference.
Bjoern



More information about the Digitalmars-d-learn mailing list