Re: Server Access via DCOM
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Fri, 20 Oct 2006 14:33:04 -0700
"DR Bellavance" <DRBellavance@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BF6AFE67-D0B7-48C8-80AC-0D40307F77C3@xxxxxxxxxxxxxxxx
I am trying to create a client that can list all of the systems on a
network
that contain my ATL server and allow them to select and connect to the
server
on the machine that they want. I am using VC 6.0 and all of the machines
are
running XP Pro. My client is also using the IE control and the server
sends
events to the client that cause the client to load the appropriate HTML
page
in the control. This all works fine but I have a problem when I want to
launch another instance of the client application to connect to my ATL
server
on a different machine. The problem lies in the fact that I have embedded
ActiveX controls (written in ATL) on the html pages that are loaded by the
server. These controls provide function activation on the server that I
am
connected to. How can I get the controls on one client application to
access
the server on a different machine than the one being accessed by the
second
client instance? Any help would be greatly appreciated.
Using CoCreateInstanceEx() from within your ActiveX control (is it really an
ActiveX control or is it a simple COM object?) you can reach any machine by
machine name or IP address.
Or did I not understand your question correctly? I'm not sure where the
"second instance" comes into play.
Brian
.
- Follow-Ups:
- Re: Server Access via DCOM
- From: DR Bellavance
- Re: Server Access via DCOM
- Prev by Date: COM Basics
- Next by Date: Re: COM Basics
- Previous by thread: COM Basics
- Next by thread: Re: Server Access via DCOM
- Index(es):
Relevant Pages
|
Loading