编译错误。
HANDLE m_hShareInfo;
typedef struct share_info3d
{
double cx,cy;
double w,h;
}SHARE_INFO3D;
SHARE_INFO3D m_shareInfo;
CWnd *m_pWnd = NULL;
m_pWnd = CWnd::FindWindow(NULL,"3D Display");
if(m_shareInfo == NULL) /////////////////row 79
{// Create share memory
m_shareInfo = (SHARE_INFO3D *)::MapViewOfFile(m_hShareInfo,FILE_MAP_WRITE,0,0,0);
}
D:\VCProjects\ProjectBSC\ProjectBSC.cpp(79) : error C2678: binary '==' : no operator defined which takes a left-hand operand of type 'struct CProjectBSCApp::InitInstance::share_info3d' (or there is no acceptable conversion)