Discussion:
RPC book recommendation needed
(too old to reply)
coolvicki7
2009-08-24 07:36:19 UTC
Permalink
Hello,

I am using VC++ and have created a Windows service without using .NET

Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.

I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.

Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.

Thank you
Scot T Brennecke
2009-08-24 08:11:16 UTC
Permalink
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need. How sophisticated does your communication
between the GUI and the remote service need to be?

DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult. Or, using TCP/IP
sockets might be a good solution.

I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.
coolvicki7
2009-08-24 08:30:43 UTC
Permalink
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need.  How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult.  Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Hello Scot, Thanks for replying.

The needs are,

- I must know how many computers on network are running my service
- The GUI must be directly able to call service functions. (basically
after one hard implementation, I need everything to be very simple)
- The service must me able to send response to the GUI.
- Service must also be able to call GUI functions and receive
response too.
- All this to work on atleast LAN

Only this much I need. Also I need communication in fastest possible
way. Will DCOM or TCP/IP be easy and best? Which one you recommend
most?

Also I came across, WCF, is it available outside .NET too in the form
of Windows API?

Thanks
Scot T Brennecke
2009-08-25 08:03:14 UTC
Permalink
Post by coolvicki7
Post by Scot T Brennecke
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need. How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult. Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Hello Scot, Thanks for replying.
The needs are,
- I must know how many computers on network are running my service
- The GUI must be directly able to call service functions. (basically
after one hard implementation, I need everything to be very simple)
- The service must me able to send response to the GUI.
- Service must also be able to call GUI functions and receive
response too.
- All this to work on atleast LAN
Only this much I need. Also I need communication in fastest possible
way. Will DCOM or TCP/IP be easy and best? Which one you recommend
most?
Also I came across, WCF, is it available outside .NET too in the form
of Windows API?
Thanks
Since you need two-way communication, I think TCP/IP sockets are a better plan than DCOM. WCF is strictly part of the .NET
Framework; you can't use it from native C code.
coolvicki7
2009-08-25 08:27:57 UTC
Permalink
Post by coolvicki7
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need.  How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult.  Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Hello Scot, Thanks for replying.
The needs are,
 - I must know how many computers on network are running my service
 - The GUI must be directly able to call service functions. (basically
after one hard implementation, I need everything to be very simple)
 - The service must me able to send response to the GUI.
 - Service must also be able to call GUI functions and receive
response too.
 - All this to work on atleast LAN
Only this much I need. Also I need communication in fastest possible
way. Will DCOM or TCP/IP be easy and best? Which one you recommend
most?
Also I came across, WCF, is it available outside .NET too in the form
of Windows API?
Thanks
Since you need two-way communication, I think TCP/IP sockets are a better plan than DCOM.  WCF is strictly part of the .NET
Framework; you can't use it from native C code.- Hide quoted text -
- Show quoted text -
Thanks Scot and Giovanni. I think I will go with sockets. Now I need
to find a book on it.

Any recommendations from anyone?
Faisal
2009-08-25 12:52:03 UTC
Permalink
Post by coolvicki7
Post by coolvicki7
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need.  How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult.  Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Hello Scot, Thanks for replying.
The needs are,
 - I must know how many computers on network are running my service
 - The GUI must be directly able to call service functions. (basically
after one hard implementation, I need everything to be very simple)
 - The service must me able to send response to the GUI.
 - Service must also be able to call GUI functions and receive
response too.
 - All this to work on atleast LAN
Only this much I need. Also I need communication in fastest possible
way. Will DCOM or TCP/IP be easy and best? Which one you recommend
most?
Also I came across, WCF, is it available outside .NET too in the form
of Windows API?
Thanks
Since you need two-way communication, I think TCP/IP sockets are a better plan than DCOM.  WCF is strictly part of the .NET
Framework; you can't use it from native C code.- Hide quoted text -
- Show quoted text -
Thanks Scot and Giovanni. I think I will go with sockets. Now I need
to find a book on it.
Any recommendations from anyone?
This book is an excellent one to understand the concepts
http://www.amazon.com/Windows-Sockets-Network-Programming-paperback/dp/0768682320

I don't know whether its updated version is available.
coolvicki7
2009-08-26 09:25:47 UTC
Permalink
Post by coolvicki7
Post by coolvicki7
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need.  How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult.  Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Hello Scot, Thanks for replying.
The needs are,
 - I must know how many computers on network are running my service
 - The GUI must be directly able to call service functions. (basically
after one hard implementation, I need everything to be very simple)
 - The service must me able to send response to the GUI.
 - Service must also be able to call GUI functions and receive
response too.
 - All this to work on atleast LAN
Only this much I need. Also I need communication in fastest possible
way. Will DCOM or TCP/IP be easy and best? Which one you recommend
most?
Also I came across, WCF, is it available outside .NET too in the form
of Windows API?
Thanks
Since you need two-way communication, I think TCP/IP sockets are a better plan than DCOM.  WCF is strictly part of the .NET
Framework; you can't use it from native C code.- Hide quoted text -
- Show quoted text -
Thanks Scot and Giovanni. I think I will go with sockets. Now I need
to find a book on it.
Any recommendations from anyone?
This book is an excellent one to understand the conceptshttp://www.amazon.com/Windows-Sockets-Network-Programming-paperback/d...
I don't know whether its updated version is available.- Hide quoted text -
- Show quoted text -
Thanks all. I will start my Windows Socket study soon :)

coolvicki7
2009-08-24 08:33:06 UTC
Permalink
Post by coolvicki7
Hello,
I am using VC++ and have created a Windows service without using .NET
Now I want to create a front end GUI for this service and this GUI
must be able to call this service functions over a network, atlease
over LAN.
I came across Remote Procedural Calls which seems to be the best
option for me. I do not know how to implement these in VC++ and so
need to read a book on it.
Could anyone please recommend a book that will be my beginner to
advanced level guide for this? and if there are some better solutions
to my problem except using .NET, you are most welcome to suggest.
Thank you
Although RPC is not a bad idea, it is somewhat more low level than you probably need.  How sophisticated does your communication
between the GUI and the remote service need to be?
DCOM is a distributed extension to normal COM, and it uses RPC in its implementation, but is not as difficult.  Or, using TCP/IP
sockets might be a good solution.
I don't have any specific books in mind on these topics, but I wanted to help you choose the best strategy before you acquire a book
to learn it.- Hide quoted text -
- Show quoted text -
Also service is implemented in pure VC and not VC++. That is I have
not used OOP.
Giovanni Dicanio
2009-08-24 15:38:55 UTC
Permalink
Post by coolvicki7
Also service is implemented in pure VC and not VC++. That is I have
not used OOP.
I'm not sure if this will help you, but I think that you may consider
the native Windows Web Service APIs (my understanding is that this API
has a pure C interface, so you can use it from both C and C++):

Windows Web Services API
http://msdn.microsoft.com/en-us/library/dd430435(VS.85).aspx

There are some videos available on Channel 9 as well:

http://channel9.msdn.com/posts/yochay/Windows-Web-Services/
http://channel9.msdn.com/pdc2008/PC01/

Giovanni
Continue reading on narkive:
Loading...