已经有了CDC::LPtoDP,你这是要做什么?

解决方案 »

  1.   

    我把它换成其他的名字(LP2oDP),但
    编译后仍报错如下:
    error C2264: 'LP2DP' : error in function definition or declaration;
     function not called
      

  2.   

    void CDraw::DrawPixel(CMyfPt& pt0)
    {
    CPoint pt(0,0);
    pt=LPtoDP(pt0);\\已经有定义了,你自己又写一个,mfc不知道改调用谁了
    m_pcDC->SetPixel(pt.x,pt.y,m_clrColor);
    }
    编译后报错如下:
    error C2264: 'LPtoDP' : error in function definition or declaration; function not called
      

  3.   

    但关键是我已经把名字改为LP2oDP了,但
    编译后仍报错如下:
    error C2264: 'LP2DP' : error in function definition or declaration;
    function not called即,所报错误依旧,只是把名字从LPtoDP改为LP2DP;
      

  4.   

    你的函数申明改了没有:把有LPtoDP的地方全都替换成LP2DP。