2 questions about COM/DCOM in ATL 3.0
-
1. How can I create COM - server in ATL 3.0 (Visual Studio 6) for common clients resources,for example I want to sum and save data received from any clients? 2. I create DCOM with ATL 3.0 but it begins to work only if I make mount from client-machine (WINNT 4.0 SP. 5) on server-machine (WINNT 4.0 SP. 5) and after that run server.exe -regserver on client-machine. I think it is not good way and may be anybody has other decision? Thanks in advance O.K.
-
1. How can I create COM - server in ATL 3.0 (Visual Studio 6) for common clients resources,for example I want to sum and save data received from any clients? 2. I create DCOM with ATL 3.0 but it begins to work only if I make mount from client-machine (WINNT 4.0 SP. 5) on server-machine (WINNT 4.0 SP. 5) and after that run server.exe -regserver on client-machine. I think it is not good way and may be anybody has other decision? Thanks in advance O.K.
1. It is needed in Interface to add DECLARE_CLASSFACTORY_SINGLETON(). 2. Instead of mount you may to register server on the client-machine in the manner: \\server-computer-name\drive\server.exe - regserver It is not good also, but you must not make mount.