Re: VC++ windows services
Does your code work? Did you test it?
Re: VC++ windows services
Yes it is working in MFC.. 10 screen shots are taken in the interval of 10 seconds..
Re: VC++ windows services
Then what is the problem?
Re: VC++ windows services
I want to include these codings the service application. It should run as a service. I mean it should start taking the screen shots once the service gets started. How to include the above codes in to the windows service application??
Re: VC++ windows services
Re: VC++ windows services
Re: VC++ windows services
I have learned and added the codes to install and uninstall a service.
now installation and uninstallation both working fine.
Next step is bringing the codes from MFC. the codes in the txt file i have attached.. please help me..
Re: VC++ windows services
I guess you don't need MFC code in your service.
Re: VC++ windows services
Then, how it is possible to take the screenshots codes inside a service. And make it to work when the service gets started..
Re: VC++ windows services
The code you have shown does not contain any MFC classes/functions. So what is your problem?
Re: VC++ windows services
please help me.. i want to include the code to my service. So that the codes executed once the service gets started..
Re: VC++ windows services
Instead of using please help me.. in each post try to solve it differently as per your needs.
If you need to start your screenshot taker application with windows startup then put the exe path in startup folder instead of making it a service.
Re: VC++ windows services
I need to distribute it to all in my company, so it needs to be a service. I am a beginner. So help me in this aspect. How to add the above codes to the service application.
Re: VC++ windows services
The "need to distribute it to all in my company" does not mean that it must be a service.
What is wrong with the hypheni's suggestion?
Re: VC++ windows services
It should not have the UI and also it should run as a service,so that it can screenshots. Could you say me how to add the above codes inside the windows service application.
Re: VC++ windows services
Services have restricted rights, this is because the philosophy behind it is different from a normal executable. One of those restrictions is the interaction with the desktop/UI. The restrictions also differ per OS. W7 is more strict than XP for example. Are you sure that a normal service is allowed to interact with the desktop in a way that it can take snapshots ?
Re: VC++ windows services
While using the above codes in the windows service application.:
Am getting the following error:
#error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Re: VC++ windows services
While using the above codes in the windows service application.:
Am getting the following error:
#error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Re: VC++ windows services
As I already wrote you don't need MFC code in your service. Period.
And FYI: http://social.msdn.microsoft.com/For...-4df89896f6eb/
Re: VC++ windows services
I'd be careful before we help somebody write spyware without knowing a bit more about him.
Re: VC++ windows services
I have saved the image under.Jpg format. I want to save the image as blob in MYSql database.
How to convert .Jpg file to blob data.. Help with the code i have attached.