如何在C ++ MFC应用程序中使用消息框? [英] How do I use a messagebox in a C++ MFC application ?

查看:83
本文介绍了如何在C ++ MFC应用程序中使用消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody,有人可以帮助我知道如何在C ++中使用MFC项目中使用MessageBox吗?



我试图查找谷歌在此期间。



谢谢



我尝试了什么:



项目是整个应用程序的子项目,我需要将消息框主要放在其中,然后编译它然后复制生成的LIB进入大应用程序。

当我尝试在其上插入临时消息框时,它会向我发送'错误:名称后跟::必须是类或命名空间'。



我只是想看一个结构如何进入该模块,我的意思是它的值,因为它们正在改变,我试图看看它何时发生。

Hello Everybody, Could somebody help me to know how can I use a MessageBox in a MFC project writte in C++ ?

I´m trying to find out in google in the meantime.

Thanks

What I have tried:

The project is a sub-project of an entire application, and I need to put the message box primaryly inside it and then compile it and then to copy the resulting LIB into the big app.
When I try to insert a temporary messagebox on it, it sends me 'Error: name followed by :: must be a class or a namespacename'.

I just want to see how an structure gets to the that module, its values I mean, because these are changing, and I´m trying to see when it happens.

推荐答案

在C ++语法上刷新内存的时间。你也可以通过查看 MessageBox来了解如何做到这一点。功能(Windows) [ ^ ]或 CWnd :: MessageBox [< a href =https://msdn.microsoft.com/en-us/library/0eebkf6f.aspxtarget =_ blanktitle =New Window> ^ ]甚至 AfxMessageBox [ ^ ]。所有人都发现了谷歌。
Time to refresh your memory on C++ syntax. Also you can see how to do it just by looking at MessageBox function (Windows)[^] or CWnd::MessageBox[^] or even AfxMessageBox[^]. All found courtesy of Google.


这篇关于如何在C ++ MFC应用程序中使用消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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