When we convert a module done in lower versions(ie: VC6 to VS2003) to VS2005 or above in C++, there's a possibility of an error like this. This occurs because of the difference in return types used in older versions of Visual Studio. To make it run, you need to change the return-type UINT to an LRESULT and things should be fine.
UINT CStaticLink::OnNcHitTest(CPoint point)
{
return HTCLIENT;
}
Replace UINT with LRESULT :)
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment