程序在其他机器上执行结果也是这样。VC++会有问题吗?,我用的是在前年买的,在安装时,提示过有些文件的版本比现在旧,建议保留新版本时,选择了是,系统为WIN98联想随机版
解决方案 »
- 为什么修改ActiveX方法的返回类型,DISP_FUNCTION_ID要报错?
- VC+gSOAP做dll与web service连接的问题
- vs2005和DX8 sdk是不是不兼容啊?
- mfc中一个.cpp文件如果包含了<windows.h>,它跟"stdafx.h"中<afxwin.h>在什么情况下会有冲突?
- 很简单的程序,运行报错!
- 关于执行程序没反应,无模式对话框建立也有问题
- 如何在单文档中创建对话框?
- ado vc++Extensoins 的问题?帮帮忙,各位老大。
- 如何触发EDIT控件的鼠标单击,鼠标移动等消息啊,100分,高手帮忙
- 有谁了解手机SMS短消息开发,或知道相关资源站点?
- word文档内存不足
- 谁有MFC的架构图(表)
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CFormView::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
CS9_1Doc *pDoc=GetDocument();
UpdateData();
if(pDoc->m_Month[m_nCurrentMonth].nProduct!=m_nMonthProduct)
{
pDoc->m_nTotalProduct+=m_nMonthProduct-pDoc->m_Month[m_nCurrentMonth].nProduct;
CString str;
str.Format("%d",pDoc->m_nTotalProduct);
m_YearProduct.SetCaption(str);
pDoc->m_Month[m_nCurrentMonth].nProduct=m_nMonthProduct;
if(m_nCurrentMonth==0)
m_sRiseRate="第一月无此值";
else if(pDoc->m_Month[m_nCurrentMonth-1].nProduct==0)
m_sRiseRate="上月无产值";
else
m_sRiseRate.Format("%2f%%",(pDoc->m_Month[m_nCurrentMonth].nProduct-pDoc->m_Month[m_nCurrentMonth-1].nProduct)/(float)(pDoc->m_Month[m_nCurrentMonth-1].nProduct)*100);
pDoc->SetModifiedFlag();
UpdateData(FALSE);
}
}
CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
pEdit->SetSel(512/*只要足够大就行*/ , -1);