C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 27th, 2004, 04:39 PM
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jan 2004
Location: near St. Louis Illinois
Posts: 3,288 Ancient Dragon User rank is Sergeant (500 - 2000 Reputation Level)Ancient Dragon User rank is Sergeant (500 - 2000 Reputation Level)Ancient Dragon User rank is Sergeant (500 - 2000 Reputation Level)Ancient Dragon User rank is Sergeant (500 - 2000 Reputation Level)Ancient Dragon User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 20 h 37 m 22 sec
Reputation Power: 23
how to configure remote server

This is more of a setup problem than a c/c++ problem.

I have an ATL/COM Service that works ok as a service on my local machine. That is, I can access it ok when using CoCreateInstance() in another application that also runs on the same computer.

Now I want to move the service to another W2K Server computer and access it from my local machine. When using CoCreateInstance() I just change CLSCTX_LOCAL_SERVER to CLSCTX_REMOTE_SERVER. But that's not all that I need to do. Somehow I need to tell my local computer where that remote computer is (ip address probably) -- but how???

Reply With Quote
  #2  
Old September 27th, 2004, 09:19 PM
The Dark The Dark is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2004
Location: Adelaide, Australia
Posts: 880 The Dark User rank is Lance Corporal (50 - 100 Reputation Level)The Dark User rank is Lance Corporal (50 - 100 Reputation Level)The Dark User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 14 h 15 m 25 sec
Reputation Power: 10
Check out the dcomcnfg.exe program - it should already be installed. This allows you to specify where objects should be created.
I think the idea is that your program does not need to know which computer is handling the service, it just needs to be able to create the object.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > how to configure remote server

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap