58 #if defined(Q_OS_WINCE) 69 #if defined(QT_NEEDS_QMAIN) 70 int qMain(
int,
char **);
74 extern "C" int __cdecl
main(
int,
char **);
76 extern "C" int main(
int,
char **);
87 int WINAPI
WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPWSTR ,
int cmdShow)
90 int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR ,
int cmdShow)
95 #if defined(Q_OS_WINCE) 97 GetModuleFileName(0, appName, MAX_PATH);
103 qWinMain(instance, prevInstance, cmdParam.
data(), cmdShow, argc, argv);
105 #if defined(Q_OS_WINCE) 106 wchar_t uniqueAppID[MAX_PATH];
107 GetModuleFileName(0, uniqueAppID, MAX_PATH);
113 if (mutex && ERROR_ALREADY_EXISTS == GetLastError()) {
123 UINT msgNo = RegisterWindowMessage((LPCWSTR)uid.
utf16());
126 SetForegroundWindow((HWND)(((ULONG)aHwnd) | 0x01));
131 int result =
main(argc, argv.
data());
132 #if defined(Q_OS_WINCE) static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
QString & replace(int i, int len, QChar after)
The QByteArray class provides an array of bytes.
void __cdecl qWinMain(HINSTANCE, HINSTANCE, LPSTR, int, int &, QVector< char *> &)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QByteArray & prepend(char c)
Prepends the character ch to this byte array.
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int __cdecl main(int, char **)
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPWSTR, int cmdShow)
QByteArray toLocal8Bit() const Q_REQUIRED_RESULT
Returns the local 8-bit representation of the string as a QByteArray.
#define TRUE
Synonym for true.
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
#define QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
T * data()
Returns a pointer to the data stored in the vector.
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.