Dear visitor who can read English
This page is a page translated automatically by Google AJAX Language API.
Please comment to this page if you could not understand. A PERSON will review this page .
I think that you will be able to understand this page later. Please give a little time to us.
Best regards,
This site is support & information site of WEB,and Software. This site might help you that create software or Web Site…perhaps?[:]
Description: In Qt, Windows of the Service that would be created.
Unix deamon process and system of the Windows Service is provided by the class that wraps.
Can be easily created by using the class.
However, the standard in the Qt SDK is not included.
From the address above, to download, compile (build) is required to work.
In this article, VC + + 2008 Express You can sample and create an overview of the work environment.
controller.exe interactive.exe registered with the service (install).
1
2
3
4
5
6
C:\temp> controller.exe -i C:\temp\interactive.exe
The service Qt Interactive Service has been installed under: C:\temp\interactive.exe
The service was installed.
C:\temp>
The service was installed. If the output is, OK.
The service was not installed. So, it is an error, please try and verify the input.
Also, try to check the services control panel.
As mentioned above, "Qt Interactive Service" If we can confirm the name of the service is OK.
controller.exe using interactive.exe run.
1
2
3
4
C:\temp> controller.exe "Qt Interactive Service" -s
The service "Qt Interactive Service" was started.
C:\temp>
The service "Qt Interactive Service" was started. If the output is, OK.
The service "Qt Interactive Service" was not started. So, it is an error, please try and verify the input.
Also, the top-left desktop "Service" and only appears in a party label.
If you do not see this screen, so there are some environmental problems, and then suggest that you reconsider.
This service, Vista, Windows 7 does not start.
XP, 2000 and please confirm.
Stop using the controller.exe interactive.exe.
1
2
3
4
C:\temp> controller.exe "Qt Interactive Service" -t
The service "Qt Interactive Service" was stopped.
C:\temp>
The service "Qt Interactive Service" was stopped. If the output is, OK.
The service "Qt Interactive Service" was not stopped. So, it is an error, please try and verify the input.
Also, the top-left desktop "Service" on the screen disappeared and I only say party labels.
Remove interactive.exe controller.exe using the service (uninstall).
1
2
3
4
C:\temp> controller.exe "Qt Interactive Service" -u
The service "Qt Interactive Service" was uninstalled.
C:\temp>
The service "Qt Interactive Service" was uninstalled. If the output is, OK.
The service "Qt Interactive Service" was not uninstalled. So, it is an error, please try and verify the input.
Looking at the source code of the sample, about two or three line registration service.
The service, QtService <QApplication> Inherit if the method of preparation, too, is not difficult.
You will see the following document if you see main.cpp and it is confused.
Hi Ko,
I could compile qt service 2.6.1 with Qt4.7, Visual Studio 2008 and Window XP.
You might have problem with your environment , or forget ‘C:QtQtService2.6_1> configure -library’ before ‘qmake’.
If you want static library, you should do it without parameter ( ex) ‘C:QtQtService2.6_1> configure’ ).
hi guy, the InteractiveService app works fine to me, but i can’t debug the code in InteractiveService::start() function, what’s the matter with this problem?
October 15th, 2010 @ 16:06:12
I tried to compile the qtservice framework. But after nmake, I got the list of errors.
I am using Qt4.7, Visual Studio 2008 and Window XP.
C:\Qt\QtService2.6_1>qmake
C:\Qt\QtService2.6_1>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
cd buildlib\ && “C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nma
ke.exe” -f Makefile
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
c:\Qt\Qt4.7WinCE\bin\qmake.exe -o Makefile buildlib.pro
“C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe” -f Makef
ile.Debug
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t- -DDEBUG -D_DEBUG -Zi -MDd -EHs-c- -W3
-w34100 -w34189 -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT
_NO_PRINTER -DQT_NO_PRINTDIALOG -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_
ARM -DARM -D__arm__ -DQ_OS_WINCE_WM -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -D_WIN32
_WCE=0x502 -DQT_QTSERVICE_EXPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD
_SUPPORT -DQT_NO_DYNAMIC_CAST -I”..\..\Qt4.7WinCE\include\QtCore” -I”..\..\Qt4.7
WinCE\include\QtGui” -I”..\..\Qt4.7WinCE\include” -I”..\src” -I”..\..\Qt4.7WinCE
\include\ActiveQt” -I”debug” -I”..\..\Qt4.7WinCE\mkspecs\default” -Fodebug\ @C:\
DOCUME~1\user\LOCALS~1\Temp\nm6.tmp
qtservice_win.cpp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2260) : error C2
733: second C linkage of overloaded function ‘InterlockedIncrement’ not allowed
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2258) :
see declaration of ‘InterlockedIncrement’
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2267) : error C2
733: second C linkage of overloaded function ‘InterlockedDecrement’ not allowed
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2265) :
see declaration of ‘InterlockedDecrement’
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2275) : error C2
733: second C linkage of overloaded function ‘InterlockedExchange’ not allowed
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2272) :
see declaration of ‘InterlockedExchange’
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2286) : error C2
733: second C linkage of overloaded function ‘InterlockedExchangeAdd’ not allowe
d
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2283) :
see declaration of ‘InterlockedExchangeAdd’
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2295) : error C2
733: second C linkage of overloaded function ‘InterlockedCompareExchange’ not al
lowed
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2291) :
see declaration of ‘InterlockedCompareExchange’
..\src\qtservice_win.cpp(718) : error C2065: ‘WM_ENDSESSION’ : undeclared identi
fier
NMAKE : fatal error U1077: ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE”‘ : return code ‘0x2’
Stop.
NMAKE : fatal error U1077: ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe”‘ : return code ‘0x2’
Stop.
NMAKE : fatal error U1077: ‘cd’ : return code ‘0x2’
Stop.
Is there solution for that?
Thanks
October 15th, 2010 @ 19:48:36
Hi Ko,
I could compile qt service 2.6.1 with Qt4.7, Visual Studio 2008 and Window XP.
You might have problem with your environment , or forget ‘C:QtQtService2.6_1> configure -library’ before ‘qmake’.
If you want static library, you should do it without parameter ( ex) ‘C:QtQtService2.6_1> configure’ ).
OK?
December 28th, 2010 @ 02:03:48
hi guy, the InteractiveService app works fine to me, but i can’t debug the code in InteractiveService::start() function, what’s the matter with this problem?