QT中Windows窗口程序直接用WinMain函数来写怎么办?
比如,把下面这个例子用qtcreator写#include<windows.h>intWINAPIWinMain(HINSTANCEhInstance,HINSTANCE...
比如,把下面这个例子用qt creator 写
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, int nShowCmd)
{
MessageBoxW (NULL, L"Hello World from WinMain!", L"hello", MB_OK | MB_ICONINFORMATION);
return 0;
} 展开
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, int nShowCmd)
{
MessageBoxW (NULL, L"Hello World from WinMain!", L"hello", MB_OK | MB_ICONINFORMATION);
return 0;
} 展开
1个回答
2016-08-03
展开全部
#include <QMessageBox>
QMessageBox::information(this, "title", "Hello");
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询