Study/MFC2014.07.09 17:23

The result of static_cast to a pointer type is an rvalue. Rvalues cannot be bound to non-const references. You can perform the cast here with a reinterpret_cast to a reference type. Ex: reinterpret_cast<ObjectBase *&>(pMyObject) 

'Study > MFC' 카테고리의 다른 글

[MFC] casting refernce to pointer  (0) 2014.07.09
Dialog를 hidden 상태로 실행하기  (0) 2014.06.12
mfc dialog argument  (0) 2014.06.11
[MFC] warning C4067  (0) 2012.02.07
Posted by 엽군이