网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
08月04日漏签0天
c++吧 关注:627,350贴子:2,112,879
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 5回复贴,共1页
<<返回c++吧
>0< 加载中...

用VC++编写任务。。。已在其它地方发了,审批时请不要通过

  • 只看楼主
  • 收藏

  • 回复
  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
// TaskMDlg.cpp : implementation file
//

#include "stdafx.h"
#include "TaskM.h"
#include "TaskMDlg.h"
#include "math.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
CWnd* m_parentWnd;

class CAboutDlg : public CDialog
{
public:
CAboutDlg();

// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTaskMDlg dialog

CTaskMDlg::CTaskMDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTaskMDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTaskMDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CTaskMDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTaskMDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CTaskMDlg, CDialog)
//{{AFX_MSG_MAP(CTaskMDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTaskMDlg message handlers

BOOL CTaskMDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// Add "About..." menu item to system menu.

// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);

CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}

// Set the icon for this dialog.  The framework does this automatically
//  when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon

// TODO: Add extra initialization here

return TRUE;  // return TRUE  unless you set the focus to a control
}

void CTaskMDlg::OnSysCommand(UINT nID, LPARAM lParam)
{



  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CTaskMDlg::OnPaint() 
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting

SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;

// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CTaskMDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}
void CTaskMDlg::OnTimer(UINT nIDEvent) 
{
// TODO: Add your message handler code here and/or call default
  CDC* pDC;
 pDC = m_parentWnd->GetDC();  //m_parentWnd 为需要画波形图的Dialog的m_hWnd

 CSize szFont;

 szFont = pDC->GetTextExtent("1");

 CRect rcClient;
 m_parentWnd->GetClientRect(rcClient);  //得到画图的客户区域

 CDC dcMem;
 dcMem.CreateCompatibleDC(NULL);//这里我们就在内存中虚拟建造了DC
 
 CBitmap bitmap; 
 CBitmap* pOldBitmap;
 if(bitmap.CreateCompatibleBitmap(pDC,rcClient.Width(), rcClient.Height()))//创建一与pDC兼容的位图,大小为整个客户区 
 { 
  pOldBitmap=dcMem.SelectObject(&bitmap);//将位图选入内存环境 
  dcMem.SelectClipRgn(NULL);//使dc的整个客户区都成无效区 
  dcMem.IntersectClipRect(rcClient);//再“与上”检取的无效区,使内存环境与pDC检取的无效区相等 
 } 

 CDC* pdcClient;
 CPen pen,pen1;
// pdc = m_parentWnd->GetDC();
 pdcClient = &dcMem;
 CRect roundrc;

 BOOL bCanDrawline;
 bCanDrawline = IsCanDrawLine();

 //重新刷新背景
 if( bCanDrawline )
 {
  pdcClient->Rectangle(rcClient);
  CBrush bsh(RGB(0,0,0));
  pdcClient->FillRect(rcClient, &bsh);
 }

// DrawGrids( pdcClient );

 int lineStartPos, lineEndPos;

 //画上下界限线, 把界面分成4等份
 POINT startPos,EndPos;
 int UpLimit, DownLimit, line_height;

 lineStartPos = rcClient.left;
 lineEndPos = rcClient.right;

 startPos.x = rcClient.left;
 startPos.y = rcClient.top + (rcClient.bottom-rcClient.top)*2/4;
 m_ZeroY = startPos.y;

 int imodvalue;
 imodvalue = m_lineheight % ( 2 * BETWEENSPACEVALUE );
 if( imodvalue != 0 ) m_lineheight -= imodvalue;

 UpLimit = m_ZeroY - m_lineheight;

 DownLimit = m_ZeroY + m_lineheight;

 line_height = m_lineheight;

 EndPos.x = rcClient.right;

 startPos.y = UpLimit;
 EndPos.y = UpLimit;

 pen1.CreatePen(PS_SOLID,1,RGB(0,128,0));
 CPen* pOldPen1 = (CPen*)pdcClient->SelectObject(&pen1);

 DrawGrids( pdcClient );

 pdcClient->SelectObject( pOldPen1 ); 

 pen1.DeleteObject();
 pen1.CreatePen(PS_SOLID,1,RGB(255,255,0));



2025-08-04 15:01:38
广告
不感兴趣
开通SVIP免广告
  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
 pOldPen1 = (CPen*)pdcClient->SelectObject(&pen1);

 int fnWidth, fnHeight;

 CString strup;
 if( m_MaxShow.GetLength() <1 )
  strup.Format("%.2f",linelimitevalue.UpLimiteValue);
 else  strup = m_MaxShow; 
 CRect rcUpvalue;
 fnWidth = szFont.cx * strup.GetLength();
 fnHeight = szFont.cy;
 rcUpvalue.left = rcClient.right - fnWidth - 2;
 rcUpvalue.top = UpLimit - fnHeight - 2;
 rcUpvalue.bottom = rcUpvalue.top + fnHeight + 1;
 rcUpvalue.right = rcClient.right - 1;
 
 //写上界值
 pdcClient->SetBkMode(TRANSPARENT);

 pdcClient->SetTextColor(RGB(255,255,0));
 pdcClient->DrawText( strup, rcUpvalue, DT_CENTER);

 //画上界限
 pdcClient->MoveTo(startPos);
 pdcClient->LineTo(EndPos);

 //写零坐标值
// CString strzero;
// strzero.Format("%.2f",linelimitevalue.ZeroValue);
// CRect rcZerovalue;

// fnWidth = szFont.cx * strup.GetLength();
// fnHeight = szFont.cy;

// rcZerovalue.left = rcClient.right - fnWidth - 2;
// rcZerovalue.top = m_ZeroY - fnHeight - 2;
// rcZerovalue.right = rcClient.right - 1;
// rcZerovalue.bottom = rcZerovalue.top + fnHeight + 1;

// pdcClient->DrawText( strzero, rcZerovalue, DT_CENTER);

 //画零坐标线
 startPos.y = m_ZeroY;
 EndPos.y = m_ZeroY;
 pdcClient->MoveTo(startPos);
 pdcClient->LineTo(EndPos);

 //写下界值
 CString strDown;
 if( m_MinShow.GetLength() <1 )
  strDown.Format("%.2f",linelimitevalue.DownLimiteValue);
 else strDown = m_MinShow;
 CRect rcDownvalue;

 fnWidth = szFont.cx * strDown.GetLength();
 fnHeight = szFont.cy;

 rcDownvalue.left = rcClient.right - fnWidth - 2;
 rcDownvalue.top = DownLimit + 1;
 rcDownvalue.right = rcClient.right - 1;
 rcDownvalue.bottom = rcDownvalue.top + fnHeight + 2;

 pdcClient->DrawText( strDown, rcDownvalue, DT_CENTER);
 //画下界限
 startPos.y = DownLimit;
 EndPos.y = DownLimit;
 pdcClient->MoveTo(startPos);
 pdcClient->LineTo(EndPos);

 pdcClient->SelectObject(pOldPen1);

 pen.CreatePen(PS_SOLID,1,RGB(68,232,219));
 CPen* pOldPen = (CPen*)pdcClient->SelectObject(&pen);

 int i = 0;
 double *pdblPos;

 int iArrCount = m_arrYHeight.GetSize();

 if( (lineEndPos-lineStartPos)>(m_betweenspace*iArrCount) )
 {
  i = 0;
  m_fromPos.x = lineEndPos-m_betweenspace*iArrCount;
 }
 else
 {
  i = iArrCount - ( (lineEndPos-lineStartPos)/m_betweenspace );
  m_fromPos.x = lineStartPos;
 }

 if(m_arrYHeight.GetSize() <1) return FALSE;
 double dblpos;
 //画第一个点
 pdblPos = (double*)m_arrYHeight.GetAt(i);

 dblpos = *pdblPos;
 if(*pdblPos>99000) dblpos = 0;
 dblpos = (dblpos-linelimitevalue.ZeroValue)*m_ZoomInRatio;
 m_fromPos.y = m_ZeroY-int(dblpos/m_Height*line_height);

 if( *pdblPos <99000 )  //不是临时加的点
 {
  if( ( m_fromPos.y>=UpLimit )&&
   ( m_fromPos.y <=DownLimit )  )
  {
   pdcClient->SetPixel(m_fromPos,RGB(0,0,255));   //打蓝点
  }
  else
  {
   pdcClient->SetPixel(m_fromPos,RGB(255,0,0));   //打红点
  }
 }

 i++;

 double *pdblprePos;
 COLORREF clNaturaldot, clAlarmdot;
 clAlarmdot = RGB(255,0,0);
 clNaturaldot = RGB(255,255,255);
 
 while( (i <iArrCount) )



  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
 {
  m_toPos.x = m_fromPos.x+m_betweenspace;
  pdblprePos = (double*)m_arrYHeight.GetAt(i-1);
  pdblPos = (double*)m_arrYHeight.GetAt(i);
  dblpos = *pdblPos;
  if(*pdblPos>90000) dblpos = 0;
  dblpos = (dblpos-linelimitevalue.ZeroValue)*m_ZoomInRatio;
  m_toPos.y = m_ZeroY-int(dblpos/m_Height*line_height);

//  if( ( *pdblprePos>9000 )&&( *pdblPos>9000 ) )
  if( *pdblPos>9000 )
  {
   //不处理
  }
  else
  {
   pdcClient->MoveTo(m_fromPos);
   pdcClient->LineTo(m_toPos);

   if( ( m_fromPos.y>=UpLimit )&&
    ( m_fromPos.y <=DownLimit )  )
   {
    if( m_fromPos.y <m_ZeroY )
     pdcClient->SetPixel(m_fromPos.x,m_fromPos.y-1,clNaturaldot);   //打白点
    else
    {
     if( m_fromPos.y==m_ZeroY )
      pdcClient->SetPixel(m_fromPos.x,m_fromPos.y,clNaturaldot);   //打白点
     else pdcClient->SetPixel(m_fromPos.x,m_fromPos.y+1,clNaturaldot);   //打白点
    }
   }
   else
   {
    if( m_fromPos.y  < UpLimit )
     pdcClient->SetPixel(m_fromPos.x,m_fromPos.y-1, clAlarmdot);   //打红点
    else pdcClient->SetPixel(m_fromPos.x,m_fromPos.y+1, clAlarmdot);   //打红点
   }


   if( ( m_toPos.y>=UpLimit )&&
    ( m_toPos.y <=DownLimit )  )
   {
    if( m_toPos.y  < m_ZeroY )
     pdcClient->SetPixel(m_toPos.x,m_toPos.y-1,clNaturaldot);   //打白点
    else
    {
     if( m_toPos.y == m_ZeroY )
      pdcClient->SetPixel(m_toPos.x,m_toPos.y,clNaturaldot);   //打白点
     else pdcClient->SetPixel(m_toPos.x,m_toPos.y+1,clNaturaldot);   //打白点
    }
   }
   else
   {
    if( m_toPos.y  < UpLimit )
     pdcClient->SetPixel(m_toPos.x,m_toPos.y-1,clAlarmdot);   //打红点
    else pdcClient->SetPixel(m_toPos.x,m_toPos.y+1,clAlarmdot);   //打红点
   }
  }

  m_fromPos = m_toPos;
  ++i;
 }

 pDC->BitBlt(rcClient.left,rcClient.top,rcClient.Width(),rcClient.Height(),&dcMem,0,0,SRCCOPY);//第一次拷贝到屏幕
 m_parentWnd->ReleaseDC(pDC); 

 pdcClient->SelectObject(pOldPen);
 pdcClient->SelectObject(pOldBitmap);

 pdcClient->DeleteDC();
 pdcClient = NULL;
 
 CDialog::OnTimer(nIDEvent);
}
--------------------------------------------------------
用VC++6.0 SP6 编译出现以下错误:
--------------------Configuration: TaskM - Win32 Debug--------------------
Compiling...
TaskMDlg.cpp
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(207) : error C2065: 'IsCanDrawLine' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(230) : error C2065: 'm_ZeroY' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(233) : error C2065: 'm_lineheight' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(233) : error C2065: 'BETWEENSPACEVALUE' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(250) : error C2065: 'DrawGrids' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(261) : error C2065: 'm_MaxShow' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(261) : error C2228: left of '.GetLength' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(262) : error C2065: 'linelimitevalue' : undeclared identifier



  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(262) : error C2228: left of '.UpLimiteValue' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(305) : error C2065: 'm_MinShow' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(305) : error C2228: left of '.GetLength' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(306) : error C2228: left of '.DownLimiteValue' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(333) : error C2065: 'm_arrYHeight' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(333) : error C2228: left of '.GetSize' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(335) : error C2065: 'm_betweenspace' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(338) : error C2065: 'm_fromPos' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(338) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(343) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(346) : error C2228: left of '.GetSize' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(346) : error C2562: 'OnTimer' : 'void' function returning a value
        e:\我的文档\visual c++\taskm\taskmdlg.h(42) : see declaration of 'OnTimer'
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(349) : error C2228: left of '.GetAt' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(353) : error C2228: left of '.ZeroValue' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(353) : error C2065: 'm_ZoomInRatio' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(354) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(354) : error C2065: 'm_Height' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(358) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(359) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(378) : error C2065: 'm_toPos' : undeclared identifier
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(378) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(378) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(379) : error C2228: left of '.GetAt' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(380) : error C2228: left of '.GetAt' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(383) : error C2228: left of '.ZeroValue' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(384) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(396) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(397) : error C2228: left of '.y' must have class/struct/union type



  • 罗凡天
  • ,
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(399) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(400) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(400) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(403) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(404) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(404) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(405) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(405) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(410) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(411) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(411) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(412) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(412) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(416) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(417) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(419) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(420) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(420) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(423) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(424) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(424) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(425) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(425) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(430) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(431) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(431) : error C2228: left of '.y' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(432) : error C2228: left of '.x' must have class/struct/union type
E:\我的文档\Visual C++\TaskM\TaskMDlg.cpp(432) : error C2228: left of '.y' must have class/struct/union type
执行 cl.exe 时出错.

TaskMDlg.obj - 1 error(s), 0 warning(s)
---------------------------------------------------
请问如何解决这些问题或提供能实现类似CPU使用记录的波形显示程序源码。
知道答案者到以下网址回答(百度知道):
http://zhidao.baidu.com/question/50204649.html?quesup1



登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 5回复贴,共1页
<<返回c++吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示