Hi i am trying to do one winapi application in qt but it doesnt work. Someone can check this code and take me some suggestion to solve this issue thxx:
#include <QApplication>
#include "mainwindow.h"
#ifndef Q_WS_X11
#include <QtPlugin>
#endif
#ifdef _MSC_VER
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
int argc = 0;
char *argv[1];
#else
int main(int argc, char *argv[])
{
#endif
QApplication a(argc, argv);
MainWindow w;
return a.exec();
}
Bookmarks