Using function in Sevice

Posted on 2005-04-14
Last Modified: 2013-11-20
Hi All,
  I have already written a service under MFC containing a certain function. I want to write a program under VC++  that calls this function from the service so that I can pass parameters to the function and retrieve the return Value from it.

Thanx for your fast response,
Amr Adel
Question by:amradel_79
    1 Comment
    LVL 86

    Accepted Solution

    Check out ("RPCsvc: Windows NT System Service That Uses RPC") - this sample illustrates how to do that. Another sample is presented in ("A Homegrown RPC Mechanism") which could also be used as an alternative approach. Apart from these two, ("Inter-Process Communication") has a lot of samples that describe how to communicate between processes.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now