[Last Call] Learn how to a build a cloud-first strategyRegister Now


Using function in Sevice

Posted on 2005-04-14
Medium Priority
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

jkr earned 2000 total points
ID: 13782582
Check out http://msdn.microsoft.com/library/en-us/vcsample98/html/vcsmprpcsvc.asp ("RPCsvc: Windows NT System Service That Uses RPC") - this sample illustrates how to do that. Another sample is presented in http://msdn.microsoft.com/library/en-us/dnsecure/html/msdn_homegrwn.asp ("A Homegrown RPC Mechanism") which could also be used as an alternative approach. Apart from these two, http://www.codeproject.com/threads/#Inter%2DProcess+Communication ("Inter-Process Communication") has a lot of samples that describe how to communicate between processes.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month17 days, 21 hours left to enroll

830 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