1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifdef CONFIG_NATIVE_WINDOWS
- #include <winsock.h>
- #endif
- #include <QApplication>
- #include "wpagui.h"
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- WpaGui w;
- int ret;
- #ifdef CONFIG_NATIVE_WINDOWS
- WSADATA wsaData;
- if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
- printf("Could not find a usable WinSock.dll\n");
- return -1;
- }
- #endif
- w.show();
- app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
- ret = app.exec();
- #ifdef CONFIG_NATIVE_WINDOWS
- WSACleanup();
- #endif
- return ret;
- }
|