starting DCOM-server on a Remote-computer using VISIO-VBA 
Author Message
 starting DCOM-server on a Remote-computer using VISIO-VBA

Hi,

I want to start my DCOM-Server from a VBA(VISIO)-Client using the parameters
"HostComputerName" .
In Visual C++ it is realisied like this:

COSERVERINFO serverinfo;    //    structure for HostComputerName
 serverinfo.dwReserved1 = 0;
 serverinfo.dwReserved2 = 0;
 serverinfo.pwszName   = m_sHostName.AllocSysString();
 serverinfo.pAuthInfo  = NULL;

 MULTI_QI qi = { &pID_Entry, NULL, 0 };

 HRESULT hr = ::CoCreateInstanceEx( CLSID,    //    create DCOM-Server
(Object)

                   NULL,
                   CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER,
                   &serverinfo,
                   1,
                   &qi);
 ::SysFreeString(serverinfo.pwszName);    //    clean up

When I am working with VBA I do not know how to use the
COSERVERINFO-structure or how to address the remote computer.

How can I create my serverobject on a remote-computer from my VBA-Client?

Thanks

Christian Havel



Sun, 13 Apr 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. DCOM-Server auf Remote-Computer aktivieren

2. DCOM remote computer availability check

3. Starting applications on a remote computer

4. Starting process on remote computer

5. Starting applications on a remote computer

6. use vbscript to start application at remote computer

7. Starting applications on a remote computer

8. Starting applications on a remote computer

9. starting nt service on remote computer

10. Starting process on remote computer

11. getting started with Visio-VBA

12. Remote User, trying to use Visio on an NT Server

 

 
Powered by phpBB® Forum Software