
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