CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Join Date
    Mar 2011
    Posts
    12

    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.

  2. #17
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    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 ?

  3. #18
    Join Date
    Mar 2011
    Posts
    12

    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]

  4. #19
    Join Date
    Mar 2011
    Posts
    12

    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]

  5. #20
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    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/
    Victor Nijegorodov

  6. #21
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: VC++ windows services

    I'd be careful before we help somebody write spyware without knowing a bit more about him.

  7. #22
    Join Date
    Mar 2011
    Posts
    12

    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.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured