473,671 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

services windows et interface graphique

bonjour,

J'ai lu dans la doc, que les service s'exécutent dans une station windows
non interactive.
En effet, même quand mon service lance un process, qui est une appli MFC
boite de dialogue, on ne la voit pas.
Par contre, le process est bien créé, on le voit dans le gestionnaire des
tâches.

Comment faire par exemple, pour que le service informe l'utilisateur que le
PC va sauvagement le déloguer dans une quart d'heure, et qu'il ferait mieux
de sauver ses données...

merci
Jul 21 '05 #1
4 1814
Primo : MFC+Service, c'est pas très malin.

MessageBox peut utiliser les Flags qui permet de se faire voir sur le bureau
de l'utilisateur interactif.

Mais il ne faut pas attendre de l'utilisateur de réponse puisqu'il n'y en a
pas forcement.
--
Paul Bacelar
Développeur, Consultant, Expert en technologie de développement Microsoft.
Recherchant poste CDI/CDD/FREELANCE pour Juillet 2004.

"manu" <ma**@manu.ne t> a écrit dans le message de
news:OO******** *****@TK2MSFTNG P11.phx.gbl...
bonjour,

J'ai lu dans la doc, que les service s'exécutent dans une station windows
non interactive.
En effet, même quand mon service lance un process, qui est une appli MFC
boite de dialogue, on ne la voit pas.
Par contre, le process est bien créé, on le voit dans le gestionnaire des
tâches.

Comment faire par exemple, pour que le service informe l'utilisateur que le PC va sauvagement le déloguer dans une quart d'heure, et qu'il ferait mieux de sauver ses données...

merci

Jul 21 '05 #2
Primo : MFC+Service, c'est pas très malin.

MessageBox peut utiliser les Flags qui permet de se faire voir sur le bureau
de l'utilisateur interactif.

Mais il ne faut pas attendre de l'utilisateur de réponse puisqu'il n'y en a
pas forcement.
--
Paul Bacelar
Développeur, Consultant, Expert en technologie de développement Microsoft.
Recherchant poste CDI/CDD/FREELANCE pour Juillet 2004.

"manu" <ma**@manu.ne t> a écrit dans le message de
news:OO******** *****@TK2MSFTNG P11.phx.gbl...
bonjour,

J'ai lu dans la doc, que les service s'exécutent dans une station windows
non interactive.
En effet, même quand mon service lance un process, qui est une appli MFC
boite de dialogue, on ne la voit pas.
Par contre, le process est bien créé, on le voit dans le gestionnaire des
tâches.

Comment faire par exemple, pour que le service informe l'utilisateur que le PC va sauvagement le déloguer dans une quart d'heure, et qu'il ferait mieux de sauver ses données...

merci

Jul 21 '05 #3
> Primo : MFC+Service, c'est pas très malin.

je n'utilise en fait que la CSocket, la boite de dialogue n'est là que pour
mes tests.
Dans ce cas...
MessageBox peut utiliser les Flags qui permet de se faire voir sur le bureau de l'utilisateur interactif.
ha, nouveauté (pour moi) !
merci pour l'info.

Mais il ne faut pas attendre de l'utilisateur de réponse puisqu'il n'y en a pas forcement.


oui, lorsque aucun utilisateur ne s'est encore logué

merci pour ta réponse.
Jul 21 '05 #4
> Primo : MFC+Service, c'est pas très malin.

je n'utilise en fait que la CSocket, la boite de dialogue n'est là que pour
mes tests.
Dans ce cas...
MessageBox peut utiliser les Flags qui permet de se faire voir sur le bureau de l'utilisateur interactif.
ha, nouveauté (pour moi) !
merci pour l'info.

Mais il ne faut pas attendre de l'utilisateur de réponse puisqu'il n'y en a pas forcement.


oui, lorsque aucun utilisateur ne s'est encore logué

merci pour ta réponse.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2542
by: Roland | last post by:
Bonjour, J'ai redhat 9.0 sur mon ordinateur. Et j'ai besoin d'une interface graphique de python pour cnstuire une application . J'ai cherché mais en vain. Pourriez-vous m'indiquer une? Merci de bien vouloir m'aider.
2
2178
by: IcedCrow | last post by:
#1) Burning question on my mind is ... what is the difference between a "web service" and a distributed COM component other then a distributed COM component had to be registered on a host server and be a part of a network whereas the web service can be located via URL? I don't see much of a difference and it bugs me :-) They both sit outside of the client computer. They both provide functionality. They are both called remotely.
1
10330
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best technologies to be used, in terms of...
2
1212
by: Adam Norris | last post by:
I am trying to accomplish the following task and need to be pointed into the right direction. I would like to create a C#.NET windows service that listens on a specific port for a message to be sent to it through a NON .NET client interface (whether TCP or HTTP). This message will contain information to be processed. The information could be a single command or an XML file. Whether or not this is .NET Remoting or Web Services, I...
4
547
by: manu | last post by:
bonjour, J'ai lu dans la doc, que les service s'exécutent dans une station windows non interactive. En effet, même quand mon service lance un process, qui est une appli MFC boite de dialogue, on ne la voit pas. Par contre, le process est bien créé, on le voit dans le gestionnaire des tâches. Comment faire par exemple, pour que le service informe l'utilisateur que le
0
1678
by: Shaun | last post by:
I have read several articles that tell me that a COM+ application can expose its components as web services, but can't get things to work for me. I have the following class (slightly modified from one example I found) : using System; using System.EnterpriseServices; using System.Xml; using System.Runtime.InteropServices;
2
1280
by: Water Cooler v2 | last post by:
I want a process to be running always and it is supposed to do a lot of stuff like: 1. reading and writing to files 2. watching a file system folder 3. communicating with COM components 4. communicating with other C DLLs 5. Watching for email from a POP3 server 6. Sending email using SMTP 7. Fetching data from SQL Server
0
1577
by: nhaughton | last post by:
I have writtten a webservice in .Net 1.1 using C#, that exposes an existing COM+ application as a webservice to remote web applications. The COM+ application works fine under Win 2000, XP amd 2003. and the webservice works fine under Win2000 and XP. However I have been unable to get the webservice working with our COM+ application on a Windows 2003 server, although I can use the same COM+ application from a Windows forms application on...
1
2081
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service that I want to host in windows service. The problem is that if I host it as windows service it does not use the configuration file. I have to define the binding, endpoint etc. programmatically in the Program.cs file. Any idea what I might be doing wrong? Cheers,
0
8485
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8403
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8605
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8677
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5704
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.