PDA

Click to See Complete Forum and Search --> : Moving from COM to DCOM


longyp
Nov 7th, 2001, 09:30 AM
I am quite pleased with myself. I have an ActiveX EXE which runs SQL queries asynchronously and notifies my clients when the query has finished. Not bad eh ?..well for me anyway

I am now thinking about moving this EXE to a dedicated high powered Server.

How do I configure the clients to reference the EXE on another machine.

Is there coding required in the EXE or is it all done for me my DCOM config. program within Windows

FATBOYPEE
Nov 8th, 2001, 03:09 AM
If the High-Power Server capable of supporting VB DLL's ? I.e it's not a Linux/Unix/somsuch machine then to move to DCOM is simple.

All you need to do in install/deploy your DLL to the new server (not forgetting to configure your database connection of your server etc !!). Open the Client VBP and make a Networked Path reference to the DLL on the new server & re-deploy the client.

Of course, things to consider when deploying the DLL are any dependencies the DLL may require, connections to Databases etc etc, the load the DLL will have to take... It really depends upon how tight you coded your DLL and what it's for. But assuming your Error Handling etc follows COM rules etc then there should in theory be No problem.

FATBOYPEE:)

longyp
Nov 9th, 2001, 02:50 AM
Thanks for the reply. It had been v. quiet up until then,,I thought I had asked a question dealing with Black Magic.

I will give this a try. This really sounds too simple. I hope it works.

Thanks, I will let you know.

sachinmahajan
Nov 13th, 2001, 04:26 AM
Dear

if u want to go on the dcom then this is very simple
u hv to register ur exe on the server with dcomcnfg
utility
ur client hv install the dcom support and then through
the clicnfg register the .vbr and .tlb file on client
now if u make changes in the exe then client will find that reflect
without any changes
i think that u ust wanna this
bye
sachin

bipinav
Nov 19th, 2001, 01:53 AM
hi
i wonder if a Networked Path reference to the DLL on the new server is made , on which memory space does the DLL open ? If it opens up in the client space , can we tell it's a server dll ??
Can u please clarify ?
Thanks
bips
:rolleyes:

sachinmahajan
Nov 19th, 2001, 04:28 AM
Dear

if u want to deploy the DLL then u can od this with the MTS
and if u hv use EXE then u can do this by DCOM support
obviosly for dll also and the instance will depend on the instancing property of the class what u hv set
multiuse,singleuse etc

Sachin