使用AfxMessageBox [英] Using AfxMessageBox

查看:78
本文介绍了使用AfxMessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用AfxMessageBox或其他类似的方式显示双变量?

How to display an double variable using AfxMessageBox or other similar?

推荐答案

构建字符串以进行显示但在MFC环境中有很多种方法通常会做类似

There are many ways to construct a string for display but in an MFC environment it is common to do something like

CString strMsg;
double dblVar = 100.00;

strMsg.Format(_T("Double value is %f"), dblVar);
AfxMessageBox(strMsg);


这篇关于使用AfxMessageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆